XCode 7,找不到身份 [英] XCode 7, no identity found
问题描述
我的证书将于2017年到期,并且配置文件处于活动状态。
它曾经在几天前运行良好,但是由于某种原因,我无法再构建我的应用了。
这是我得到的错误:
My certificate expires on 2017 and the provisioning profile is active. It used to work very well several days ago but for some reason I can't build my app anymore. This is the error I get :
C9B531B60712E22D5C0892366E9C330555929A3C: no identity found
*** error: Couldn't codesign /Users/cherif/Apps/Parkisseo/NoPark/Build/Products/
Debug-iphoneos/NoPark.app/Frameworks/libswiftCoreLocation.dylib:
codesign failed with exit code 1
我应该检查什么?
推荐答案
这是我在此处找到的一些解决方案
在构建设置中检查CODE_SIGN_IDENTITY属性。是否在此处选择了
的配置文件?您还需要在应用程序.plist中输入有效的
捆绑包标识符。标识符必须与
匹配您生成配置文件时提供的标识符。 Apple在此处上有一些
注释。
Check the CODE_SIGN_IDENTITY property in your build settings. Is your provisioning profile selected there? You also need to enter a valid bundle identifier in your apps .plist. The identifier has to match the one you provided when generating the profile. Apple has some notes on that here.
Apple也有
a文档中的解决方案的代码签名问题集合:技术说明TN2407代码签名故障排除
索引
另一种解决方案可能与钥匙串访问有关。这样可以解决您的问题:
Another solution could be something to do with keychain access. This may solve your problem:
因此,在钥匙串访问中,单击 Apple Worldwide Developer
关系证书颁发机构证书,选择获取信息。
然后,展开信任设置,并为 当
使用此证书时的组合框,选择 系统默认值。
So, in Keychain Access, click on the Apple Worldwide Developer Relations Certificate Authority certificate, select Get Info. Then, expand the Trust settings, and for the combo box for "When using this certificate:", choose "System Defaults".
这也可能是Xcode在2个帐户之间造成混淆。确保只使用一个。
It could also be that Xcode is confused between 2 accounts. Make sure you are using only one.
如果这些都不起作用,请找我。
If none of these work, please get back to me.
来源: / usr / bin / codesign失败,退出代码1
这篇关于XCode 7,找不到身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!