如果我尝试在手机上运行我的代码,我的Xcode会出现问题。
CodeSign /Users/fboulegue/Library/Developer/Xcode/DerivedData/Optibelt-Scanner-emdojrjggsstlofztblkozlwqznq/Build/Products/Debug-iphoneos/Optibelt-Scanner.app
cd /Users/fboulegue/Desktop/Optibelt-Scanner
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign --force --sign "iPhone Developer: fabian boulegue (7U338PL287)" --resource-rules=/Users/fboulegue/Library/Developer/Xcode/DerivedData/Optibelt-Scanner-emdojrjggsstlofztblkozlwqznq/Build/Products/Debug-iphoneos/Optibelt-Scanner.app/ResourceRules.plist --entitlements /Users/fboulegue/Library/Developer/Xcode/DerivedData/Optibelt-Scanner-emdojrjggsstlofztblkozlwqznq/Build/Intermediates/Optibelt-Scanner.build/Debug-iphoneos/Optibelt-Scanner.build/Optibelt-Scanner.xcent /Users/fboulegue/Library/Developer/Xcode/DerivedData/Optibelt-Scanner-emdojrjggsstlofztblkozlwqznq/Build/Products/Debug-iphoneos/Optibelt-Scanner.app
/Users/fboulegue/Library/Developer/Xcode/DerivedData/Optibelt-Scanner-emdojrjggsstlofztblkozlwqznq/Build/Products/Debug-iphoneos/Optibelt-Scanner.app: replacing invalid existing signature
/Users/fboulegue/Library/Developer/Xcode/DerivedData/Optibelt-Scanner-emdojrjggsstlofztblkozlwqznq/Build/Products/Debug-iphoneos/Optibelt-Scanner.app: CSSMERR_TP_NOT_TRUSTED
Command /usr/bin/codesign failed with exit code 1
有人有想法吗?
答案 0 :(得分:0)
很可能您没有在钥匙串上安装正确的证书,或者您没有将设备添加到配置文件中。
这是一个很好的链接,可以帮助您(列出导致您的问题的可能问题):http://esscomp.co.uk/?tag=cssmerr_tp_not_trusted
在Google上搜索cssmerr_tp_not_trusted
,还有更多内容。
修改强>
确保您已安装Apple WWDR证书(可以从Apple Developer Portal下载,“证书”部分*If you do not have the WWDR intermediate certificate installed, click here to download now.
)。确保它不会多次出现在钥匙串中。
安装/重新安装WWDR证书后,检查您的证书是否仍显示This certificate was signed by an unknown authority
。如果它没有尝试构建。
如果您仍然遇到问题,则最有可能需要重新创建证书,请参阅配置门户中的Certificates/How To
部分,以获取有关如何执行此操作的精彩教程。
您应删除所有无效证书以防止任何冲突。