When I try to build my app with Xcode, an error interrupts the build process:
Command
CompileStoryboard
failed with a nonzero exit code
Sometimes, it shows this error instead:
Command
CompileSwift
failed with a nonzero exit code
I have New Build System turned on.
What can I do to fix this?
If you are facing an error like that on new MacOS version.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
It means that you need to install XCode command line, open a Terminal and run this command:
$ xcode-select --install
In my case it was renaming a file to an existing file in other folder(Group) by mistake, just rename it to what it was then the error disappeared
This error happened to me when I forgot to change entity Properties before creating NSManagedObject subclass. Solved by:
Entity+CoreDataClass.swift
andEntity+CoreDataProperties.swift
.Current Product Module
and "codegen" toManual/None
.I had the
JSONwebtoken
pod installed and that was causing issues. I needed to delete the CommonCrypto folder that is in theJSONWebtoken
pod folder. Here is a ->link<- explaining the issue. This started happening in Xcode 10.I tried a lot of the options discussed here.
Nothing worked. I'm using Xcode Version 11.0 beta (11M336w).
Finally I downloaded a fresh copy and replaced the one I had previously installed. It was the same exact version. That did the trick.
I have faced similar problem. I have done
Legacy Build Settings
- didn't worktypedef NS_ENUM
in .h file and enums related works. Build the system and build success shown. Next un-comment the code and build again - Magically works