79777678

Date: 2025-09-29 01:27:40
Score: 1
Natty:
Report link

The Problem

I am trying to run a Flutter app on an iOS Simulator, but I'm getting the following error:

Runner's architectures (Intel 64-bit) include none that iPhone Air can execute (arm64).

Although the main Architectures setting in Xcode is set to arm64, the build fails because the simulator requires the arm64 architecture, and the app's build settings are somehow excluding it.

The Cause

This issue is caused by a misconfiguration in Xcode's Excluded Architectures build setting for the iOS Simulator. Although the project is correctly configured to build for arm64, the Excluded Architectures setting explicitly tells Xcode to ignore the arm64 architecture for the simulator, creating a direct conflict that prevents the app from running.

The Solution

To fix this, you must clear the incorrect architectures from the Excluded Architectures setting.

  1. Open your project in Xcode.

  2. Navigate to the Runner target by clicking on the project file in the left-hand navigator, and then selecting the Runner target.

  3. Go to the Build Settings tab.

  4. Use the search bar to find Excluded Architectures.

  5. Expand the Excluded Architectures section.

  6. Locate the row for Any iOS Simulator SDK and double-click the value to edit it.

  7. A pop-up window will appear. Select and delete any listed architectures (e.g., i386 and arm64). The list should be completely empty.

After completing these steps, go to Product > Clean Build Folder from the Xcode menu, and then try to build and run your application on the simulator. This should resolve the architecture mismatch error.

* if you have a code like that

config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

At your pod file, pelase remove it

Reasons:
  • Blacklisted phrase (1): I am trying to
  • RegEx Blacklisted phrase (1): I'm getting the following error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: utkudenis