xcode iphone 开发者中 System.keychain 和 login.keychain 之间的不明确匹配
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7238275/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ambiguous matches in iphone developer between System.keychain and login.keychain
提问by okysabeni
I'm running into a code signing problem. The solutions posted in SO and elsewhere to remove a duplicate certificate but I have already done that and the build error keeps popping. I'm out of ideas on what to do.
我遇到了代码签名问题。在 SO 和其他地方发布的解决方案可以删除重复的证书,但我已经这样做了,并且构建错误不断出现。我不知道该怎么做。
Under keychain access, there is login and System and both have iPhone developer: myName in it. Am I suppose to delete one of them? Which one should I delete? The login one or the System one?
在钥匙串访问下,有登录名和系统,并且都有 iPhone developer: myName 。我应该删除其中之一吗?我应该删除哪一个?登录一还是系统一?
Thanks!
谢谢!
回答by okysabeni
Most answers will tell you that you have a duplicate certificate. This is true for my case but the answers left out how to do it.
大多数答案会告诉您您有一个重复的证书。这对我的情况来说是正确的,但答案没有说明如何去做。
For me, my account expired and I have to get a new certificate and install it. Next, I looked at Keychain and removes the expired certificate but still got the error. What works for me is actually searching for "iPhone" in Keychain and removing all expired certificates. Apparently, some of it are not shown in System/Certificates or login/Certificates.
对我来说,我的帐户已过期,我必须获取新证书并安装它。接下来,我查看了钥匙串并删除了过期的证书,但仍然出现错误。对我有用的实际上是在钥匙串中搜索“iPhone”并删除所有过期的证书。显然,其中一些没有显示在系统/证书或登录/证书中。
Hope this helps!
希望这可以帮助!
回答by Mirco Ellmann
Sometimes a duplicate certificate f.e. in System is not shown in the Keychain Access. Just do the following: Go to View -> Show expired (or the like) and the duplicate should be shown. Did it for me :)
有时,钥匙串访问中不会显示系统中的重复证书 fe。只需执行以下操作:转到“查看”->“显示已过期”(或类似内容),并应显示副本。为我做的:)
回答by samwize
For my case, I encountered while building for injectionforxcode.
就我而言,我在构建 injectionforxcode 时遇到了这种情况。
Took a look at the Run Script, and it has /usr/bin/codesign --force --sign "iPhone Developer"
. Since I have multiple accounts, the "iPhone Developer" has be changed to the specific one eg. "iPhone Developer: samwize"
看了一下运行脚本,它有/usr/bin/codesign --force --sign "iPhone Developer"
. 由于我有多个帐户,因此“iPhone Developer”已更改为特定帐户,例如。“iPhone 开发者:samwize”
I suppose any script running codesign
could run into the same situation and would require this tweak.
我想任何正在codesign
运行的脚本都可能遇到相同的情况,并且需要进行此调整。