发布时间:2021-03-10作者:laosun阅读(7362)
xcode运行C++项目,提示:Command CodeSign failed with a nonzero exit code的解决办法!
第一次使用mac xcode编写C++程序,运行的时候提示错误。
如下所示:
Showing Recent Messages CodeSign ~/Library/Developer/Xcode/DerivedData/YiDing-fiptpxtujwvnricolywfszwdtqod/Build/Products/Debug-iphonesimulator/CTAssetsPickerController.bundle cd ~/Downloads/MVVM-RAC-Demo-master/YiDing/Pods export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "-" /usr/bin/codesign --force --sign - --timestamp=none ~/Library/Developer/Xcode/DerivedData/YiDing-fiptpxtujwvnricolywfszwdtqod/Build/Products/Debug-iphonesimulator/CTAssetsPickerController.bundle ~/Library/Developer/Xcode/DerivedData/YiDing-fiptpxtujwvnricolywfszwdtqod/Build/Products/Debug-iphonesimulator/CTAssetsPickerController.bundle: bundle format unrecognized, invalid, or unsuitable Command /usr/bin/codesign failed with exit code 1
打开钥匙串,如下所示(我这是更新过后的):
这是替换过的证书,如果你的证书也显示不受信任之类的,那么更新一下即可。
下载地址:
Apple Worldwide Developer Relations Certification Authority.cer.zip
版权属于: 技术客
原文地址: https://www.sunjs.com/article/detail/b3201577a64b4681a1fcfc0b835a56e4.html
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。