Flutter iOS: “ld: symbol(s) not found for architecture x86_64”
This linker error means the Simulator build targets x86_64 and at least one binary framework or static library has no x86_64 simulator slice. Find the framework with lipo or its XCFramework Info.plist, then get a version that includes ios-arm64_x86_64-simulator. On Apple Silicon, also remove any Podfile setting that excludes arm64 for the simulator, and stop running Xcode under Rosetta, so the build goes back to arm64.
Symptom
flutter run or an Xcode Simulator build fails at the link step:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SomeVendorClass", referenced from: ...
ld: symbol(s) not found for architecture x86_64
- It started after adding a plugin, often one that wraps a closed-source SDK.
- Device builds work, and only the Simulator fails.
- On Xcode 26 you may instead see that the Runner's architectures “include none that iPhone … can execute”.
Why it happens
Flutter's CocoaPods helper sets ONLY_ACTIVE_ARCH=NO for Debug, so pods build every simulator architecture. If one plugin excludes arm64 for the simulator, Flutter builds the whole app for x86_64 under Rosetta, and then every binary must have an x86_64 slice. The link fails at the first one that doesn't.
| Cause | How to tell |
|---|---|
A vendored framework or .a has no x86_64 simulator slice |
lipo -info on it doesn't list x86_64 |
A pod or your Podfile sets EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 |
grep for it in ios/Podfile and ios/Pods (see Confirm it) |
| Xcode or the terminal runs under Rosetta on Apple Silicon | Get Info on Xcode shows “Open using Rosetta”, or arch prints i386 |
| Intel Mac or Intel CI runner | uname -m prints x86_64 |
| A framework with device slices only | The XCFramework has no simulator variant at all |
Xcode 26 removed Rosetta for iOS 26 simulators, so a build that falls back to x86_64 now fails to run on those simulators at all. Recent Flutter versions warn at pod install and name the plugin that excluded arm64.
Confirm it
- Find the arm64 exclusion:
grep -rn "EXCLUDED_ARCHS" ios/Podfile ios/Pods/Target\ Support\ Files 2>/dev/null | grep -i arm64
- Check a suspect framework's slices. For an XCFramework:
plutil -p ios/Pods/<Vendor>/<Name>.xcframework/Info.plist | grep -E "LibraryIdentifier|SupportedPlatformVariant"
You want an identifier like ios-arm64_x86_64-simulator. For a plain framework or library:
lipo -info path/to/<Name>.framework/<Name>
- Check for Rosetta: run
archin the same terminal. On Apple Silicon it should printarm64.
Fix
- Get a framework with an x86_64 simulator slice. Upgrade the plugin, or ask its vendor for an XCFramework that includes
ios-arm64_x86_64-simulator. This is the real fix. - Remove arm64 exclusions from
ios/Podfilepost_installand from the Runner target's build settings. Keep only Flutter's own call:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
- Reinstall pods cleanly:
flutter clean
cd ios && rm -rf Pods Podfile.lock && pod install --repo-update && cd ..
- Stop using Rosetta: untick “Open using Rosetta” for Xcode and your terminal, and reinstall CocoaPods natively if it was installed under Rosetta.
- CI: use an Apple Silicon runner, or make sure every binary has an x86_64 slice if you must build on Intel.
Stop it coming back
- Before adding a plugin that bundles a binary SDK, check its XCFramework slices.
- Keep the Podfile
post_installminimal, and review any architecture setting a plugin's install guide asks you to add. - Build the Simulator target in CI on the same architecture your team uses.
If you use BillDog
The BillDog Flutter plugin sets no architecture overrides (no EXCLUDED_ARCHS, VALID_ARCHS or ONLY_ACTIVE_ARCH). It compiles its Swift from source on top of the prebuilt BillDogFull XCFramework. The published BillDogFull frameworks we inspected include an ios-arm64_x86_64-simulator slice, so BillDog shouldn't be the binary missing x86_64. Run the plutil check above on your installed copy to be sure. This was checked against the published SDK 1.1.1-beta.5 source and the released frameworks. It hasn't yet been reproduced on a device for this page.
Related
Sources
Did this fix it?
Frequently asked questions
I'm on an Apple Silicon Mac. Why is it building for x86_64 at all?
Because something forced it. Either Xcode or the terminal runs under Rosetta, or a plugin excludes arm64 for the simulator, which makes Flutter build the whole app for x86_64. Find and remove that exclusion.
Is setting ONLY_ACTIVE_ARCH=YES a fix?
It hides the error on Apple Silicon by building only arm64 in Debug, but it breaks Intel Macs and Intel CI. Flutter sets it to NO on purpose. Fix the framework that's missing a slice instead.
Does this affect device or App Store builds?
No. Devices are arm64 only, so this is a Simulator problem. That's also why it can go unnoticed until someone on an Intel Mac or Intel CI builds the app.