skip to Main Content

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


  1. Try setting the minimum iOS deployment target to 11.0, from your Podfile:

     platform :ios, '11.0'
    

    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.

    Login or Signup to reply.
  2. 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:

    flutter upgrade
    

    Source: https://github.com/flutter/flutter/issues/124433

    It says that this problem has been fixed in Flutter 3.7.10.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search