Xcode 9:配置文件由 Xcode 管理,但签名设置需要手动管理的配置文件 [英] Xcode 9: Provisioning profile is Xcode managed, but signing settings require a manually managed profile

查看:49
本文介绍了Xcode 9:配置文件由 Xcode 管理,但签名设置需要手动管理的配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要存档我的应​​用程序以提交到 iTunes Connect.

I need to archive my app for submission to iTunes Connect.

Xcode 8.3.3 没问题:

It was OK with Xcode 8.3.3:

Xcode 9.0 不行:

It's NOT OK with Xcode 9.0:

归档时,我得到:

代码签名错误:配置文件XC iOS:*"由 Xcode 管理,但签名设置需要手动管理的配置文件.
代码签名错误:SDK 'iOS 11.0' 中的产品类型应用程序"需要代码签名

Code Signing Error: Provisioning profile "XC iOS: *" is Xcode managed, but signing settings require a manually managed profile.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0'

这两张屏幕截图来自同一台计算机,同一工作区.

The two screenshots are taken from the same computer, same workspace.

我不能使用自动",因为它会将配置文件更改为不同的配置文件,然后在上传到 iTunes Connect 后我会得到:

I can't use "Automatic" because it would change the provisioning profile to a different one, then after uploading to iTunes Connect I would get:

钥匙串访问的潜在丢失 - 先前版本的软件具有 ['YBDK7H6MLG.com.ef.english24-7'] 的应用程序标识符值,并且正在提交的新版本的软件具有['GEEM4BQ58H.com.ef.english24-7'] 的应用程序标识符.这将导致无法访问钥匙串.

Potential Loss of Keychain Access - The previous version of software has an application-identifier value of ['YBDK7H6MLG.com.ef.english24-7'] and the new version of software being submitted has an application-identifier of ['GEEM4BQ58H.com.ef.english24-7']. This will result in a loss of keychain access.

如何在不丢失钥匙串访问权限的情况下发布针对 iOS 11 的版本?

推荐答案

感谢大家的帮助.

Xcode 9 不接受 Xcode 生成的配置文件(名称中带有XC iOS").因此,解决方案是将 Xcode 生成的 Provisioning Profile 克隆到一个具有不同名称的新配置文件中.

Xcode 9 does not accept Xcode-generated Provisioning Profile (with "XC iOS" in the name). So the solution is to clone the Xcode-generated Provisioning Profile in a new one with a different name.

  1. 让您的团队代理将您设为团队中的管理员",以便管理配置文件

  1. Ask your Team Agent to make you "Admin" in the team in order to manage provisioning profiles

创建一个新的配置文件或编辑现有的配置文件:

Create a new Provisioning Profile or Edit an existing one with:

将应用 ID 更改为 Xcode 中的应用 ID:

Change the App ID to the one from Xcode:

将证书更改为正确的(不一定是最新的):

Change the Certificate to the correct one (not necessarily the latest):

点击生成

点击下载

在您的计算机上双击它

选择它进行签名:

Select it for your signing:

存档

导出时,请检查您的应用程序标识符和钥匙串访问组是否正确:

When exporting, check that your application-identifier and keychain-access-groups are correct:

这篇关于Xcode 9:配置文件由 Xcode 管理,但签名设置需要手动管理的配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆