Command /usr/bin/codesign failed with exit code 1

目前原因暂时不明,但是问题已经已解决了,猜测原因是:在工程中删除了工程中的启动图,一张一张删除的,但是没有删除lanchImage,猜测是这个问题。

解决办法是:
Command /usr/bin/codesign failed with exit code 1

在工程目录下执行:

find /Users/LYL/Library/Developer/Xcode/DerivedData/bxhjxt-ctuwdiyynnucctbrdrxsgsvusrxp/Build/Products/Debug-iphonesimulator/bxhjxt.app -name "*png" -exec xattr -v -c '{}' \;


/Users/LYL/Library/Developer/Xcode/DerivedData/bxhjxt-ctuwdiyynnucctbrdrxsgsvusrxp/Build/Products/Debug-iphonesimulator/bxhjxt.app

这个换成你自己的报错的路径,在上面图中找.app结尾的路径,上面的图不是我的,我的忘了截图,借别人的图。


原文地址:https://*.com/questions/39081871/xcode-development-codesigning-issue