網絡上通常的方法是,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.