When I try to build my app with Xcode, an error interrupts the build process:
Command
CompileStoryboard
failed with a nonzero exit code
I encountered this error when I was upgrading my project from Swift 4 to 5. I first updated all my pods to their latest versions. When I built, some pods showed this error.
The following steps resolved this issue for me:
Podfile
pod install
to remove all installed podspod deintegrate
to remove support for CocoaPodsPodfile.lock
and .xcworkspace
from my project so no
CocoaPods anymore.xcodeproj
filePodfile
pod install
to reintegrate CocoaPods and add my pods.xcworkspace
fileNow I have only errors in my own project code related with difference in Swift version I made. My job now is to fix them.
In my case it was empty assets catalog, when I delete it everything was fine again.
Alright, I was having the same problem with Xcode 10. I usually use a storyboard for every view, that way if someone is helping it's easier to fold code in. I needed to make one of the view on one storyboard the initial view Controller.
This error happened to me when I forgot to change entity Properties before creating NSManagedObject subclass. Solved by:
Entity+CoreDataClass.swift
and Entity+CoreDataProperties.swift
.Current Product Module
and "codegen" to Manual/None
.In my case, I was clean build folder then restart my mac then it's work.
In my case it was about having a file named Location. after some digging I find out that it was about having two file with the same name (weird). Cause I don't, however, it's been solved by removing the file and adding another file with a different name.
filenames are used to distinguish private declarations with the same name