ios 无法安装分发配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19798330/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't install Distribution provisioning profile
提问by Corrado
I'd like to submit an app to the AppStore (my first app !). 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. 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:
我想向 AppStore 提交一个应用程序(我的第一个应用程序!)。我已经在我的设备中测试了该应用程序(所以我已经有了一个开发配置文件),但我无法在 Xcode 中安装分发配置文件。我遵循了这个程序(我不知道多少次)但是当我尝试通过管理器添加配置文件时,我遇到了以下问题:
- 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". "iPhone of Corrado" is not included in this profile.
- 如果我双击文件没有任何反应
- 如果我单击添加,则文件不可选(灰色)
- 如果我从 Finder 中拖放,我会看到以下消息:无法在“Corrado 的 iPhone”上安装 1 个配置文件。“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
这是什么意思 ?如果我进入 Development Center\Certificates, Identifiers & Profiles\Provisioning Profiles\Distribution 并编辑配置文件,则没有设备,也无法添加任何设备(而在开发配置文件中,我可以看到我的所有设备)。我做错了什么?谢谢,科拉多
回答by xicocaio
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>Preferences 并选择 Accounts 选项卡。
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...”,输入您用于登录苹果开发者的 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.
之后,只需单击右下角的“查看详细信息...”按钮,您的签名身份和配置文件就会出现在那里。如果没有,只需单击左下角的刷新按钮。
回答by Jason Brooks
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. After following the advice above, much head scratching, deleting and re-creating certificates, the following link provides the correct approach for Distribution provisioning
我刚刚花了过去 12 个小时试图弄清楚为什么我的 OSX 应用程序没有代码签名,并且该错误与我的 Mac 包含 0 个设备的配置文件有关。按照上面的建议,摸索,删除和重新创建证书后,以下链接提供了分发配置的正确方法
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 Developerand set the Provisioning Profileto Automatic.
展望未来,对于 OSX 上的 Mac App Store 提交,要使用的正确代码签名身份似乎是Mac 开发人员,并将配置文件设置为自动。
You do need to restart Xcode during the Code Signing and Provisioning reset, but it does work.
您确实需要在代码签名和配置重置期间重新启动 Xcode,但它确实有效。