Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code

前端 未结 25 884
醉梦人生
醉梦人生 2020-11-28 08:20
Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator         


        
相关标签:
25条回答
  • 2020-11-28 09:05

    Remove a space in fileName

    ex)

    • AS-IS: /Users/user/Desktop/My Projects/TestProject/
    • TO-BE: /Users/user/Desktop/MyProjects/TestProject/
    0 讨论(0)
  • 2020-11-28 09:06

    Xcode -> File -> Workspace Setting... -> change Build System to Legacy Build System.

    Thats it. Have Fun

    0 讨论(0)
  • 2020-11-28 09:08

    I have a project in React Native and suddenly this error appeared. I was doing some shit with homebrew beforehand and this solved the issue for me:

    brew update
    brew upgrade
    brew cleanup
    
    0 讨论(0)
  • 2020-11-28 09:10

    For me, I was removing Crashlytics, Fabric and FirebaseCrashlytics. So there was a script (Run Script) for Fabric. So since app was running that first and I had removed the framework already, I was getting this error. So I removed the Run Script tab for Fabrics and then it worked perfectly fine.

    0 讨论(0)
  • 2020-11-28 09:11

    For Xcode 11, React Native development environment. I usually have this problem when a dependency is not updated.

    You can try following these steps, this usually works for me:

    1- Delete your Podfile.lock (I like to use the command '-rm -rf Podfile.lock' on the terminal for this)

    2- Delete your Pods folder (I like to use the command '-rm -rf Pods' in the terminal for this)

    3- Delete your .xcworkspace

    4- Pod install

    5- Clear your project into XCode> Product> Clean Build Folder

    0 讨论(0)
  • 2020-11-28 09:11

    What helped for me was: In Targets -> Signing & Capabilities > Uncheck Automatically manage signing (or check and uncheck if it was unchecked ) > build project

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