[英]Can't use the iOS distribution in Xcode
In my Xcode 9
project I have the Automatically manage signing
checked. 在我的
Xcode 9
项目中,我选中了“ Automatically manage signing
。 I want to sign the application with the iOS distribution
certificate. 我想用
iOS distribution
证书签署应用程序。 For some reasons, when I was creating the certificate I entered the name and email of another person. 由于某些原因,当我创建证书时,我输入了另一个人的姓名和电子邮件。 In the
keychain Access
I can see the public and private keys with the name of that person and under the private one, the iPhone distribution
certificate. 在
keychain Access
的keychain Access
我可以看到带有该人姓名的公用密钥和专用密钥,以及在专用密钥下的iPhone distribution
证书。 The problem is that in Xcode when I select the Team
, I'm only getting the iPhone developer
signing certificate
and not the the distribution
one. 问题是,在Xcode中,当我选择
Team
,我只获得iPhone developer
signing certificate
而不是distribution
signing certificate
。 But from the Build Setting
I can see the iPhone distribution
in the select list of the Code Signing Identity
. 但是从“
Build Setting
我可以在“ Code Signing Identity
的选择列表中看到iPhone distribution
。 Once I select it, Xcode
detect a conflict of the provisioning profile
(because I change it manually and the Automatically manage signing
is checked). 一旦选择它,
Xcode
检测到provisioning profile
的冲突(因为我手动对其进行了更改,并检查了“ Automatically manage signing
)。 I tried the solution of check then uncheck it and select the team but the problem is still here. 我尝试了检查的解决方案,然后取消选中它并选择团队,但问题仍然存在。
Make sure your Scheme under the Left top corner of App name Dropdown-->Edit Scheme is enabled to Release and not Debug for Archive and Testing also so automatically your Distribution is selected. 确保在“应用程序名称”下拉菜单->“编辑方案”的左上角下的“方案”已启用,而不是“调试”以进行存档和测试,以便也可以选择发布。
When you use the Automatic provisioning by default you are getting two profiles generated in Xocde One when you connect the device it used Dev Profile for debugging, but when you archive the build it autogenerates Distribution profile. 在默认情况下使用自动配置时,在连接设备使用Dev Profile进行调试的设备时,您会在Xocde One中生成两个配置文件,但是在存档构建时,它会自动生成分发配置文件。 If you have enterprise account, I would recommend having a universal distribution profile created and not Adhoc as it will always have to be updated with new Device ID added to be regenerated and recompiled the old app.
如果您有企业帐户,我建议您创建一个通用分发配置文件,而不是Adhoc,因为它总是必须通过添加新的设备ID进行更新才能重新生成并重新编译旧应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.