Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target: x86_64

I am getting the below error while building my flutter app in IOS simulator via M1 Macbook pro. I am using VS code for editing. I have no issues with the building while building with my iPhone connected to the mac. Any idea how to resolve this.

enter image description here

Launching lib/main.dart on IPhone 13 Simulator in debug mode...
lib/main.dart:1
Xcode build done.                                            1.5s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[10488]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ffeb6b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1048c42c8). One of the two will be used. Which one is undefined.
    objc[10488]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1ffeb6be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1048c4318). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **
Xcode's output:
↳
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/aravindganesh/Documents/Development/myproject/ios/Runner.xcodeproj: error: The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target: x86_64. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on IPhone 13 Simulator.
Exited (sigterm)

I am adding the x-code configuration below:

enter image description here

like image 842
Aravind Avatar asked Nov 19 '25 02:11

Aravind


2 Answers

A simple flutter clean solved the problem for me.

like image 99
Andrey Gordeev Avatar answered Nov 20 '25 17:11

Andrey Gordeev


Xcode 13.4

Target > Build Settings > Build Options > Allow Multi-Platform Builds: YES

enter image description here

like image 40
Stefan Rein Avatar answered Nov 20 '25 15:11

Stefan Rein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!