无法将分发设置配置文件添加到Xcode 5 [英] Cannot add distribution provisioning profile to Xcode 5

查看:70
本文介绍了无法将分发设置配置文件添加到Xcode 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在iTunes上分发我的Phonegap应用。在此之前,我已经成功完成了此操作,但此后我又更换了新Mac。我正在使用Xcode 5.0.2。

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.

我已经创建了开发和发行证书。然后,我创建了一个App ID,在 Explicit App ID下输入了Bundle ID。

I have created development and distribution certificates. I then created an App ID, entering the Bundle ID under "Explicit App ID".

然后我为该应用程序创建了一个开发配置文件,选择了正确的应用程序ID,iOS开发证书,我的设备,给该配置文件命名并单击生成 。我下载并双击以添加到xcode。 xcode管理器打开,我看到它已添加到我的设备配置配置文件下。然后,我可以在物理设备上成功运行该应用程序。

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.

现在我想分发它。我创建了一个新的配置文件,选择分发下的 App Store,选择正确的应用程序ID,iOS分发证书,然后单击生成。当我双击下载的文件时,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:

我不知道为什么会这样。我尝试关闭并打开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.

然后我尝试通过创建存档来分发我的应用程序。首先,我要进行构建设置>代码签名,然后选择iPhone发行版:

I then try to distribute my app by creating an archive. First I go to build settings > code signing and choose 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'.

此处提供的AppID与开发人员门户中App ID的前缀不同。我不知道是否应该一样。有什么建议吗?我已经花了3天的时间解决这个问题,并且如上所述,我在以前的Mac上没有任何问题(不再有)!

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)!

推荐答案

最近让我着迷的是实际上必须在构建设置中设置配置文件。

Something that got me recently was having to actually set the provisioning profile in the build settings

这篇关于无法将分发设置配置文件添加到Xcode 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆