IOS - Build failed: Command CodeSign failed with a nonzero exit code

网络上通常的方法是,clean project,然后重启mac。

我的错误比较特殊,从stackoverflow里找到的解决方案,原因如下,我引用的game资源目录名称是resources,这个名称是被占用的,应该改成其他的名字,就可以解决了。

原问题:Xcode 10, Command CodeSign failed with a nonzero exit code

原答案如下:

None of the listed solutions worked for me. In another thread it was pointed out that including a folder named “resources” in the project causes this error. After renaming my “resources” folder, the error went away.

你可能感兴趣的:(IOS相关)