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

前端 未结 30 2750
栀梦
栀梦 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:31

    Command CompileSwift failed with a nonzero exit code

    This error happens when you are migrating your code from Xcode 9 to Xcode 10+. It due to any class name is conflicting with existing apple classes. For Example: State, Event etc.

    1. So first change the class/structure name if any existing in your code like "State" to "StateDetail"

    2. If Info.plist is added in target, remove tick mark from it so it will not copy app bundle (Latest Xcode10 security reason).

      • Select Info.plist file and uncheck under "Target Membership" in right side Identity inspector

    And build code again!!!

提交回复
热议问题