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

查看:538
本文介绍了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生成的Provisioning Profile(名称中带有"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天全站免登陆