升级到 iOS 7 beta / Xcode 5 beta 并收到警告“CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17035440/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:28:42  来源:igfitidea点击:

Upgraded to iOS 7 beta / Xcode 5 beta and receiving warning "CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS"

xcodeios7xcode5

提问by AngeloS

Just upgraded to iOS 7 beta (and Xcode 5 beta) and am receiving the following warning when I build a preexisting app that I'm moving to iOS 7

刚刚升级到 iOS 7 测试版(和 Xcode 5 测试版),当我构建一个要迁移到 iOS 7 的预先存在的应用程序时,我收到以下警告

Check dependencies: warning: CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS.

Check dependencies: warning: CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS.

However, when I check the Code Signing Entitlementsflag in my Build Settings, I actually don't have a Code Signing Entitlement defined:

但是,当我检查Code Signing Entitlements构建设置中的标志时,我实际上没有定义代码签名权利:

enter image description here

enter image description here

Any ideas? Is this now required in iOS 7? If so, how would I define a Code Signing Entitlement?

有任何想法吗?现在在 iOS 7 中需要这样做吗?如果是这样,我将如何定义代码签名权利?

回答by vially

The problem is not with the Code Signing Entitlements. The problem is most probably with the Code Signing Identity.

问题不在于Code Signing Entitlements. 问题很可能出在Code Signing Identity.

In Xcode 4 the automatic profile selector was looking for a profile named: iPhone Developer. However, it seems in Xcode 5 the automatic profile selector is looking for a profile named: iOS Developer(as it can be seen in your screenshot) which most probably doesn't exist.

在 Xcode 4 中,自动配置文件选择器正在寻找名为:iPhone Developer的配置文件。但是,在 Xcode 5 中,自动配置文件选择器似乎正在寻找一个名为:iOS Developer(如您的屏幕截图所示)的配置文件,该配置文件很可能不存在。

In order to fix this problem try manually selecting an existing profile from the Code Signing Identitydrop-down list.

要解决此问题,请尝试从Code Signing Identity下拉列表中手动选择现有配置文件。

回答by Dmitry Shevchenko

Keep automatic identity setting, but select a profile under "Provisioning Profile" setting and Xcode will pick up correct identities.

保持自动身份设置,但在“Provisioning Profile”设置下选择一个配置文件,Xcode 将选择正确的身份。

回答by Esteban Bouza

If you are having this problem because you are using Jenkins and it can't find the right code signing identity, you can fix it by setting it manually Jenkins manual Code Signing Identity

如果您遇到这个问题是因为您使用的是 Jenkins 并且它找不到正确的代码签名身份,您可以通过手动设置来修复它 Jenkins manual Code Signing Identity

It will automatically choose the right provisioning profile if it's present in the Jenkins node.

如果 Jenkins 节点中存在正确的配置文件,它将自动选择正确的配置文件。