简体   繁体   English

Xcode 6 - 无法为Ad-Hoc分发选择签名证书/配置文件。 始终采取默认

[英]Xcode 6 - Can't pick signing certificate/provisioning profile for Ad-Hoc distribution. Always taken default

To distribute the app we are using Xcode 6.0.1, where we encountered some issues by using the following process: 要分发我们正在使用Xcode 6.0.1的应用程序,我们通过使用以下过程遇到了一些问题:

  • Added App-Id and distribution provision profile under developer program. 在开发人员计划下添加了App-Id和分发配置文件。
  • Chose provision profile under build settings and Archive application. 选择构建设置和存档应用程序下的配置文件。
  • Chose Export option to do Ad-HocDistribute. 选择导出选项以执行Ad-HocDistribute。

But with Xcode 6.0.1, this workflow was changed a bit. 但是使用Xcode 6.0.1,这个工作流程发生了一些变化。 I couls still select the Ad-Hoc distribution option, but I cannot select the provisioning profile which I have created under developer program against my App-ID. 我仍然可以选择Ad-Hoc分发选项,但我无法根据我的App-ID选择我在开发者程序下创建的配置文件。 There were no listing of provisional profile as we use to do in Xcode 5 version. 我们在Xcode 5版本中没有使用临时配置文件列表。

The Xcode 6.0.1 has tried to match the provisional profile from the dev-program and it returns message as no matching certificate and it automatically created identity as XC Ad Hoc * profile. Xcode 6.0.1尝试匹配dev-program中的临时配置文件,它将消息返回为无匹配证书,并自动创建身份为XC Ad Hoc *配置文件。 Once I chose the Export option the XC Ad Hoc* profile has been created automatically under the distribution provision profile option in dev-program. 选择“导出”选项后,XC Ad Hoc *配置文件已在dev-program中的分发配置文件选项下自动创建。

Under the provision profile all devices has been selected which I have added and listing total devices under my testflight application. 在规定配置文件下,我选择了所有已添加的设备,并列出了我的testflight应用程序下的总设备。 Please assist me how to choose my provision profile which I have already created specifically for my application. 请帮助我如何选择我已经专门为我的应用程序创建的配置文件。 Its really consume my whole day. 它真的消耗了我一整天。

Xcode wanted to automatically sign with the default "XC com.*" wildcard provisioning profile instead of the explicit profile that already had. Xcode希望使用默认的“XC com。*”通配符配置文件自动签名,而不是使用已有的显式配置文件。

To fix this, I just re-generated the profile on the Apple Developer Portal: 为了解决这个问题,我只是在Apple Developer Portal上重新生成了配置文件:

1) Go to developer.apple.com and find the distribution provisioning profile you want to use. 1)转到developer.apple.com并找到要使用的分发配置文件。
2) Select it, click "Edit", re-name the profile, and click "Generate". 2)选择它,单击“编辑”,重命名配置文件,然后单击“生成”。
3) Download the provisioning profile to the Desktop and drag it onto the Xcode 6 icon. 3)将配置文件下载到桌面并将其拖到Xcode 6图标上。
4) Re-start Xcode 6. 4)重新启动Xcode 6。
5) Open the organizer window and click "Submit" on the archive you built. 5)打开管理器窗口,然后在您构建的存档上单击“提交”。 Xcode will automatically pick your explicit profile instead of the generic one. Xcode会自动选择您的显式配置文件而不是通用配置文件。

In Xcode 7 try to select "Use local signing assets" when selecting team. 在Xcode 7中,选择团队时选择“使用本地签名资产”。 In my case it automatically selected custom Ad-Hoc profile, instead of XC Ad-Hoc* 在我的情况下,它自动选择自定义Ad-Hoc配置文件,而不是XC Ad-Hoc *

在此输入图像描述

It's quite tricky but in your app build settings, you don't have the good provisioning and/or the good code signing identity for the archive mode (RELEASE) and maybe be the bad team too. 这很棘手,但在你的应用程序构建设置中,你没有良好的配置和/或存档模式(RELEASE)的良好代码签名标识,也可能是坏团队。 You have to re set all this things and re archive. 你必须重新设置所有这些东西并重新存档。 You know it's good when Xcode show the good certificate. 当Xcode显示好的证书时,你知道这很好。

Hope you will export your application. 希望您能导出您的申请。

Organizer -> Export worked for me as Organizer -> Upload to App Store and Validate were picking Xcode generated provisioning every-time. 组织者 - >导出为组织者工作 - >上传到App Store和Validate每次都选择Xcode生成的配置。

Similar topic discussed here . 这里讨论类似的主题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM