Xcode 8 - 配置文件与配置文件(已弃用)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39488782/
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
Xcode 8 - Provisioning Profile vs. Provisioning Profile (Deprecated)
提问by keldar
I have just updated to Xcode 8 and I now have two options for app signing, Provisioning Profile and Provisioning Profile (Deprecated).
我刚刚更新到 Xcode 8,我现在有两个应用程序签名选项,Provisioning Profile 和 Provisioning Profile(已弃用)。
Why is one deprecated, and what is the difference between the two?
为什么不推荐使用一个,两者之间有什么区别?
采纳答案by Nhat Dinh
Update 2017/02/13
更新 2017/02/13
User interface for managing signing certificates and provisioning profiles has been changed at Xcode 8.3 beta 2.
用于管理签名证书和配置文件的用户界面已在Xcode 8.3 beta 2 中更改。
Changed the user interface for managing signing certificates and provisioning profiles. Certificates are managed from the Accounts preferences pane by selecting a team and clicking Manage Certificates. Automatically managing signing is recommended, however if your app requires manually signing provisioning profiles are managed in the General tab of the project editor. Use the Provisioning Profile dropdown to import or download profiles. In addition it displays profiles that match the current signing configuration of the target. (28641027)
更改了用于管理签名证书和配置文件的用户界面。通过选择团队并单击管理证书,可从“帐户”首选项窗格管理证书。建议自动管理签名,但如果您的应用程序需要手动签名,则在项目编辑器的“常规”选项卡中管理配置文件。使用 Provisioning Profile 下拉菜单导入或下载配置文件。此外,它还显示与目标的当前签名配置匹配的配置文件。(28641027)
- Why is one deprecated?
- 为什么一个被弃用?
I think Its deprecated because the signing system has been rewritten in Xcode8.
我认为它已被弃用,因为签名系统已在 Xcode8 中重写。
The signing system has been rewritten to include a new mode for automatically managing signing assets, in addition to a dedicated manual mode where the profiles for the target must be explicitly selected. When automatically managing signing assets, Xcode will create signing certificates, update app IDs, and create provisioning profiles. For manual mode, only custom created profiles can be selected and Xcode will not modify or create any signing assets. Xcode now encodes profiles in the target using the PROVISIONING_PROFILE_SPECIFIER build setting. This setting allows specifying both the team ID and the name or identifier of the profile.
除了必须明确选择目标配置文件的专用手动模式之外,签名系统已被重写以包括用于自动管理签名资产的新模式。自动管理签名资产时,Xcode 将创建签名证书、更新应用程序 ID 并创建配置文件。对于手动模式,只能选择自定义创建的配置文件,Xcode 不会修改或创建任何签名资产。Xcode 现在使用 PROVISIONING_PROFILE_SPECIFIER 构建设置对目标中的配置文件进行编码。此设置允许指定团队 ID 和配置文件的名称或标识符。
There are some Signing relate known Issueswith Xcode 8.1 you should known.
您应该知道一些与 Xcode 8.1相关的签名已知问题。
So maybe we should not set Provisioning Profilein Build Settingtab, switch to Generaltab , and set in Signingcategory instead.
所以也许我们不应该在Build Setting选项卡中设置Provisioning Profile,而是切换到General选项卡,并在Signing类别中设置。
If you set provisioning profile in Build Settingand enable Automatically manage signingin Generaltab Xcode will complain about that.
如果您在构建设置中设置配置文件并在常规选项卡中启用自动管理签名,Xcode 会抱怨。
- What is the difference between the two?
- 两者有什么区别?
回答by Joshua Pinter
I also updated to XCode 8 and ran into this as well. Both the Provisioning Profile and Provisioning Profile (Deprecated) were set as blank on my project in XCode 8.
我也更新到了 XCode 8 并遇到了这个问题。在 XCode 8 中,我的项目中的 Provisioning Profile 和 Provisioning Profile (Deprecated) 都设置为空白。
I tried setting them back to what they were for each environment but the Debug environment had all of the options in the dropdown removed.
我尝试将它们设置回每个环境的状态,但调试环境删除了下拉列表中的所有选项。
After creating an Archive and uploading to iTunes Connect I got a notice that the provisioning profile wasn't quite correct, which was working fine prior to XCode 8.
在创建存档并上传到 iTunes Connect 后,我注意到配置文件不太正确,这在 XCode 8 之前运行良好。
Following what the others have posted about XCode 8 getting an update to its Signing, I went to the general tab and noticed a new section that allows you to have XCode automatically manage the signing. I checked that box and now it looks like this:
根据其他人发布的有关 XCode 8 更新其签名的内容,我转到了常规选项卡并注意到一个新部分,该部分允许您让 XCode 自动管理签名。我检查了那个框,现在它看起来像这样:
I have not uploaded a new Archive to iTunes Connect yet but when I do I'll add an update here to see if it's resolved the Provisioning Profile warning.
我还没有将新的存档上传到 iTunes Connect,但是当我上传时,我会在此处添加更新以查看它是否解决了配置文件警告。
UPDATE:
更新:
After selecting Automatically manage signing in XCode and re-sending to the App Store it's still complaining so that didn't quite work. Might have to remove and re-create all provisioning profiles to get this working. What a pain. Thanks Apple.
选择自动管理登录 XCode 并重新发送到 App Store 后,它仍然在抱怨,所以这不太奏效。可能必须删除并重新创建所有配置文件才能使其正常工作。多么痛苦。谢谢苹果。
回答by nynohu
In Provisioning Profile (Deprecated) description, information is The UUID of a valid provisioning profile. A missing or invalid profile will cause a build error (deprecated, use [PROVISIONING_PROFILE_SPECIFIER] instead).
在 Provisioning Profile (Deprecated) 描述中,信息是 The UUID of a valid provisioning profile. A missing or invalid profile will cause a build error (deprecated, use [PROVISIONING_PROFILE_SPECIFIER] instead).
I found the link https://possiblemobile.com/2016/06/code-signing-xcode-8/.
我找到了链接https://possiblemobile.com/2016/06/code-signing-xcode-8/。