error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'?

前端 未结 11 1439
广开言路
广开言路 2020-12-16 11:35

I updated my Xcode but not able to build. It\'s failing with:

:0: error: unable to load standard library for target \'arm64-appl

相关标签:
11条回答
  • 2020-12-16 11:44

    What fixed the issue in my case was clearing the environment. Apparently when running a script build phase in Xcode, there are some environment variables set which may interfere with the resolution of the Swift standard library. I had this issue while performing a carthage build from an Xcode "Run Script" phase.

    Perform a command by clearing the environment with:

    env -i <command>
    

    You may want to keep the PATH and DEVELOPER_DIR environment variables though, in particular when you have multiple Xcode versions installed.

    so in your case

    env -i DEVELOPER_DIR="$DEVELOPER_DIR" PATH="$PATH" xcodebuild ...
    
    0 讨论(0)
  • 2020-12-16 11:51

    I got this issue a few days back so what I did was

    • Quit Xcode
    • Delete the derived data folder
    • Started the Xcode and did a clean build

    Doing this helped me to resolve the issue and I was able to run the application again

    0 讨论(0)
  • 2020-12-16 11:52

    Try to add iOS 10 simulator to your xCode.

    0 讨论(0)
  • 2020-12-16 11:53

    Install latest Xcode 10 GM seed, facing same issue tried many solution but after updating to new Xcode issue resolved. if still issue be there then try this go to File and project setting, set build system to legacy build system, clean and build.

    0 讨论(0)
  • 2020-12-16 11:55

    Thanks for the all answers but seems it's Xcode installation bug ..I dowloaded Xcode again and tested everything works fine in my case.

    0 讨论(0)
  • 2020-12-16 11:57

    For me, the following solved the problem:

    From the target build Setting

    setting Architectures to $(NATIVE_ARCH) and add $(ARCHS_STANDARD) to Valid Architectures.

    This might help What's the difference between "Architectures" and "Valid Architectures" in Xcode Build Settings?

    0 讨论(0)
提交回复
热议问题