I’m trying to build my Flutter project in Xcode, but I keep getting the following error:
Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator. Error launching application on iPhone 14 Pro Max.
I’ve tried reinstalling Xcode several times through the App Store and normal download but nothing seems to work. Any ideas on how to fix this?
Let me know if you have any other questions.
2
Answers
Try setting the minimum iOS deployment target to 11.0, from your
Podfile
:Maybe there’s a pod you’re using but the deployment target is not suitable.
Why setting 11.0? Because it is supported by majority of the pods and iOS devices. This worked for me.
Try to upgrade your Flutter to the newest version.
After upgrading the XCode to 14.3 I had the same problem, and upgrading Flutter to newest version (3.7.11 in my case) helped.
Solution:
Source: https://github.com/flutter/flutter/issues/124433
It says that this problem has been fixed in Flutter 3.7.10.