无法将分发配置文件添加到 Xcode 5
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21783628/
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
Cannot add distribution provisioning profile to Xcode 5
提问by user1716672
I'm trying to distribute my Phonegap app on the iTunes. I have done this before successfully before but I have since changed to a new Mac. I'm using Xcode 5.0.2.
我正在尝试在 iTunes 上分发我的 Phonegap 应用程序。我之前成功地完成了此操作,但此后我已更换为新的 Mac。我正在使用 Xcode 5.0.2。
I have created development and distribution certificates. I then created an App ID, entering the Bundle ID under "Explicit App ID".
我已经创建了开发和分发证书。然后我创建了一个 App ID,在“Explicit App ID”下输入 Bundle ID。
I then created a development provisioning profile for the app, choosing the correct App I.D., the iOS Development certificate, my device, giving the profile a name and clicking "generate". I download it and double click to add to xcode. The xcode organiser opens and I see it added under my device provisioning profiles. I can then successfully run the app on my physical device.
然后我为应用程序创建了一个开发配置文件,选择正确的应用程序 ID、iOS 开发证书、我的设备,为配置文件命名并单击“生成”。我下载它并双击添加到 xcode。xcode 管理器打开,我看到它添加到我的设备配置文件下。然后我可以在我的物理设备上成功运行该应用程序。
Now I want to distribute it. I created a new provisioning profle, selecting "App Store" under Distribution, selecting the correct App I.D., the iOS Distribution certificate, and clicking "generate". When I double click the downloaded file, the organiser in xcode opens, but the distribution provisioning profile doesn't under the device provisioning profiles. When I click the + button to add the profile, I cannot select the Distribution provisioning profile, but I can select the Development provisioning profile:
现在我想分发它。我创建了一个新的配置文件,在 Distribution 下选择“App Store”,选择正确的 App ID、iOS Distribution 证书,然后单击“generate”。当我双击下载的文件时,xcode 中的管理器打开,但分发配置文件不在设备配置文件下。当我单击 + 按钮添加配置文件时,我无法选择分发配置文件,但可以选择开发配置文件:
I have no idea why this is. I tried closing down and opening xcode, to no avail. I tried waiting a few hours. Again, it didnt work.
我不知道这是为什么。我尝试关闭并打开 xcode,但无济于事。我试着等了几个小时。再次,它没有用。
I then try to distribute my app by creating an archive. First I go to build settings > code signing and choose iPhone Distribution:
然后我尝试通过创建存档来分发我的应用程序。首先,我转到构建设置 > 代码签名并选择 iPhone Distribution:
I then select my physical device and choose Product > Archive. I get the error:
然后我选择我的物理设备并选择产品 > 存档。我收到错误:
No matching provisioning profiles found
None of the valid provisioning profiles include the device Belgian Iphone (identifier: xxxxxxxxxxxxxxxxxxxxxxx).
Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.
I click "Fix Issue" and end up with the error:
我单击“修复问题”并最终出现错误:
There was an error generating the team provisioning profile for AppID 'FT49U8Q9JE'.
The AppID given here is different to the prefix in App ID's in the developer portal. I don't know if it should be the same. Any suggestion? I have spent 3 days on this problem and as stated above, I had no issues on my previous mac (which I no longer have)!
此处给出的 AppID 与开发者门户中 App ID 的前缀不同。不知道是不是应该一样 有什么建议吗?我在这个问题上花了 3 天时间,如上所述,我以前的 mac 没有问题(我不再有)!
回答by Flexicoder
Something that got me recently was having to actually set the provisioning profile in the build settings
最近让我不得不在构建设置中实际设置配置文件