命令 /usr/bin/codesign 失败,退出代码 1
我不知道为什么在提交到 iTunesConnect 之前进行最后一次分发运行时会出现此错误:
/Users/Val/Library/Developer/Xcode/DerivedData/Mathematics-dzakmzlewrmgvibasvuixiwmkwwp/Build/Products/Debug-iphoneos/Mathematics.app: replacing invalid existing signature
/Users/Val/Library/Developer/Xcode/DerivedData/Mathematics-dzakmzlewrmgvibasvuixiwmkwwp/Build/Products/Debug-iphoneos/Mathematics.app: CSSMERR_TP_NOT_TRUSTED
Command /usr/bin/codesign failed with exit code 1
我的所有证书/配置文件都是 2 分钟前制作的。
我从另一个问题中读到,我应该从 info.plist 中删除不需要的空格,但没有这样的空格!
我应该注意到我正在运行 Xcode 4.1,今天重新安装了。
I have no idea why does this error appear when doing the final run for distribution before submitting to the iTunesConnect:
/Users/Val/Library/Developer/Xcode/DerivedData/Mathematics-dzakmzlewrmgvibasvuixiwmkwwp/Build/Products/Debug-iphoneos/Mathematics.app: replacing invalid existing signature
/Users/Val/Library/Developer/Xcode/DerivedData/Mathematics-dzakmzlewrmgvibasvuixiwmkwwp/Build/Products/Debug-iphoneos/Mathematics.app: CSSMERR_TP_NOT_TRUSTED
Command /usr/bin/codesign failed with exit code 1
All of my certificates/profiles were made 2 minutes ago.
I read from another question that I should remove unneeded spaces from info.plist but there are no such!
I should note that I am running Xcode 4.1, reinstalled today.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
CSSMERR_TP_NOT_TRUSTED 命令 /usr/bin/codesign 失败,退出代码 1
是,打开 Keychain.app &分发证书,将信任更改为“使用系统默认值”。
CSSMERR_TP_NOT_TRUSTED Command /usr/bin/codesign failed with exit code 1
Yes, open Keychain.app & the Distribution Certificate, change the trust to "use system default.
这个问题没有单一的答案,部分原因是苹果的错误消息不是非常具体。
对于我的情况,解决方案是这样的:
打开这个 Perl 脚本:
并在顶部附近插入这一行,就像在“my $xxxx”声明之后一样:
归功于 http://loopingrecursion.com/index.php?t=codesign 获取此答案。
这个问题似乎是在安装了一些 XCode 4.2 beta 7 后出现的。我最终卸载了该版本并从头开始重新安装了 4.1,但仍然无法验证或共享,直到我采用了此修复程序。
There is no single answer to this problem, partly because Apple's error message(s) is/are not terribly specific.
For my case the solution was this:
Open this Perl script:
and insert this line near the top, like right after the "my $xxxx" declarations:
Credit to http://loopingrecursion.com/index.php?t=codesign for this answer.
The problem seemed to arise after installing some XCode 4.2 beta 7. I eventually uninstalled that one and reinstalled 4.1 from scratch but still couldn't Validate or Share, until I employed this fix.
我遇到了同样的问题,我仅使用项目信息中的
Build Active Architecture Only
选项解决了它。I had the same problem, I solved it using just
Build Active Architecture Only
option in the project info.