简体   繁体   English

无法安装分发配置文件

[英]Can't install Distribution provisioning profile

I'd like to submit an app to the AppStore (my first app !). 我想向AppStore提交一个应用程序(我的第一个应用程序!)。 I've already tested the application in my device (so I already have a development provisioning profile) but I'm not able to install a Distribution provisioning profile in Xcode. 我已经在我的设备中测试了应用程序(所以我已经有了开发配置文件),但是我无法在Xcode中安装Distribution配置文件。 I've followed the procedure (I don't know how many times) but when I try to add the provisioning profile through the Organizer I have following problems: 我已经按照程序(我不知道多少次)但是当我尝试通过管理器添加配置文件时,我遇到以下问题:

  • if I double click on the file nothing happens 如果我双击该文件没有任何反应
  • if I click Add, the file is not selectable (grey) 如果单击“添加”,则文件不可选(灰色)
  • if I drag and drop from Finder I see the following message: 1 profile cannot be installed on "iPhone of Corrado". 如果我从Finder中拖放,我会看到以下消息:1个配置文件无法安装在“Corrado的iPhone”上。 "iPhone of Corrado" is not included in this profile. “Corrado的iPhone”未包含在此个人资料中。

What does it means ? 这是什么意思 ? If I go in the Development Center\\Certificates, Identifiers & Profiles\\Provisioning Profiles\\Distribution and edit the profile, there is no devices and there is no way to add any (while in the Development provisioning profile I see all my devices). 如果我进入开发中心\\证书,标识符和配置文件\\供应配置文件\\分发并编辑配置文件,则没有设备,也无法添加任何设备(在开发配置文件中,我看到了所有设备)。 What I'm doing wrong ? 我做错了什么? Thanks, Corrado 谢谢,科拉多

I don't know which Xcode you are using, but supposing you are using Xcode-5, i suggest you use the automatic provisioning profile sync feature. 我不知道您使用的是哪个Xcode,但假设您使用的是Xcode-5,我建议您使用自动配置配置文件同步功能。

Just go to Xcode>Preferences and select the Accounts tab. 只需转到Xcode>首选项,然后选择“帐户”选项卡。

If you don't have any Apple IDs account signed just click on the '+' button on the bottom left and select 'Add Apple ID...', put the id and password that you use to log on the apple developer. 如果您没有签署任何Apple ID帐户,只需单击左下角的“+”按钮并选择“添加Apple ID ...”,输入用于登录Apple开发人员的ID和密码。

After that just click on the 'View Details...' button on the bottom right, and your signing identities and provisioning profiles should appear there. 之后,只需点击右下方的“查看详细信息...”按钮,您的签名身份和配置文件就会显示在那里。 If they don't, just click on the bottom left refresh button. 如果他们不这样做,只需单击左下方的刷新按钮。

I've just spent the last 12 hours trying to figure out why my OSX App wasn't code signing and the error was related to the provisioning profile containing 0 devices for my Mac. 我花了最近12个小时试图弄清楚为什么我的OSX应用程序没有代码签名,而且错误与我的Mac包含0个设备的配置文件有关。 After following the advice above, much head scratching, deleting and re-creating certificates, the following link provides the correct approach for Distribution provisioning 按照上面的建议,大量抓头,删除和重新创建证书后,以下链接为分发配置提供了正确的方法

https://developer.apple.com/library/ios/qa/qa1814/_index.html https://developer.apple.com/library/ios/qa/qa1814/_index.html

Moving forward it seems that for Mac App Store Submission on OSX the correct code signing identity to use is Mac Developer and set the Provisioning Profile to Automatic. 展望未来,对于OSX上的Mac App Store提交,要使用的正确代码签名标识是Mac Developer并将Provisioning Profile设置为Automatic。

You do need to restart Xcode during the Code Signing and Provisioning reset, but it does work. 您需要在代码签名和配置重置期间重新启动Xcode,但它确实有效。

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

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