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

Closing Xcode for me didn’t have an effect. Instead, I cleaned the project using CommandShiftK.


I also found another reason: I had a storyboard reference to another storyboard which I had removed. The quick fix was deleting this.

enter image description here

Leave a Comment