I’m using VSCode to develop my Flutter app, and I can’t run my Flutter app on simulator (iOS 15, IPhone11) after I upgraded XCode to latest verison (14.3). Here is the error message:
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.
3
Answers
After installing 14.3 I had to modify my
ios/Podfile
to get my project running again:The issue is that, the deployment targets for iOS must be 11.0 or higher for iOS 16.4.
See: https://developer.apple.com/forums/thread/725300
UPDATE: As mentioned by @danielrosero, you need to run
pod install
again, after editingiOS/Podfile
.I have updated the Pods libraries Minimum Deployments 11.0
Make sure all the library Minimum Deployments Versions should be above 11.0, Then it worked for me.
OR
Add the below code in the end of the Podfile and do pod install.
Make sure you have update the pod files after that follow the steps that are mentioned below:
Step 1
Track the issue cased by library.If you look at the screenshot I got an error for FMDB Pod:
Step 2
we need to change the iOS version on effected pod file because new xCode not support below iOS 11.0
Step 3
Extra Step you may also face a build distribution error after updating pods. Do this to avoid that issue.
Change Distribution setting on Target Pod.
Rebuild your app again on Xcode.
upvote my answer if it’s helpful