Build fails with “Command failed with a nonzero exit code”

前端 未结 30 2431
栀梦
栀梦 2020-11-28 09:15

When I try to build my app with Xcode, an error interrupts the build process:

Command CompileStoryboard failed with a nonzero exit code

相关标签:
30条回答
  • 2020-11-28 09:23

    Switching to the legacy build system fixed the issue for me

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

    I had the JSONwebtoken pod installed and that was causing issues. I needed to delete the CommonCrypto folder that is in the JSONWebtoken pod folder. Here is a ->link<- explaining the issue. This started happening in Xcode 10.

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

    What was causing these errors for me (I was getting 8+ for some of my cocoapods) was fixing any runtime build issues in all the pods.

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

    I had the error Command LinkStoryboards failed with a nonzero exit code, and found that I was using a reference to a non-existent storyboard. I had recently changed the name of a storyboard file, so changing the reference from the 'old' name to the 'new' name solved it for me.
    You may not have exactly the same error as me, but an easy way to find a more detailed explanation of the error is to:

    • Show the issue navigator (while the build time error is showing)
    • Click the error:
    • Then, you should see more about your error: Command LinkStoryboards failed with nonzero exit code


    I hope this helps. Please, I am aware that I am answering from experience of a different error than this question was asked about, but I believe this advice should help you conquer similar problems!

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

    I also facing same issue in xcode 10 and tried all the solutions provided but nothing working.

    Then I deleted all the files and folders of the following folder :

    ~/Library/Developer/Xcode/DerivedData
    

    and it worked like a charm.

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

    In my case, the problem was that I assigned a .swift class to the viewController in the storyboard, while the project was Objective C.

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