When I try to build my app with Xcode, an error interrupts the build process:
Command
CompileStoryboard
failed with a nonzero exit code
Switching to the legacy build system fixed the issue for me
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.
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.
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:
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!
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.
In my case, the problem was that I assigned a .swift class to the viewController in the storyboard, while the project was Objective C.