尝试创建 iOS 应用程序存档时出错:“无法创建配置文件,因为您的团队没有注册设备." [英] Error when trying to create archive of iOS app: "Unable to create a provisioning profile because your team has no devices registered."

查看:21
本文介绍了尝试创建 iOS 应用程序存档时出错:“无法创建配置文件,因为您的团队没有注册设备."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Xcode 创建 iOS 应用程序的存档以将其提交到 App Store.但是,当我选择iOS 设备"作为目标并单击产品 - 存档"时,会弹出以下错误消息:

I am trying to create an archive of an iOS app with Xcode to submit it to the App Store. However, the following error message pops up when I select 'iOS Device' as target and click on Product - Archive:

无法创建配置文件,因为您的团队没有在会员中心注册的设备.请连接设备,启用它以进行开发,然后使用管理器将其添加到会员中心.

Unable to create a provisioning profile because your team has no devices registered in the Member Center. Please connect a device, enable it for development, and add it to the Member Center using the Organizer.

当我点击应用设置页面上的修复问题"按钮时,也会出现同样的错误消息,它告诉我没有安装配置文件.

The same error message also appears when I click the "Fix Issue" button on the app settings page where it tells me that there are no provisioning profiles installed.

问题似乎有以下两个原因:

There seem to be the following two causes for the issue:

  1. App ID 未在 Apple 会员中心注册.我已经解决了这个问题.不幸的是,它没有帮助.
  2. 一些较旧的主题提到您需要在会员中心添加您的 Mac.但是,给出的说明似乎适用于旧版本的 Xcode,似乎不适用于 Xcode 6.1:
    • 如果我转到窗口 - 管理器,则没有设备"选项卡
    • 虽然有窗口 - 设备.我确实在这里看到了我的 Mac",但是我无法右键单击并选择添加到门户",因为没有这样的选项.
    • 在证书、标识符和"下会员中心中的个人资料,我也无法添加我的 Mac.它似乎只接受 iOS 设备.

我还应该提到我没有 iOS 设备(不幸的是我也没有办法购买)但根据我所读到的内容,应该可以向应用程序提交应用程序无需 iOS 设备即可存储.

I should also mention that I don't own an iOS device (and unfortunately there is no way for me to buy one either) but according to what I've read, it should be possible to submit an app to the App Store without an iOS device.

预先感谢您的帮助!

推荐答案

对于那些有同样问题的人:我的问题是我在 Apple Member Center 中配置了多个证书.Xcode 的自动配置似乎只适用于一个证书.

For those who have the same problem: The issue in my case was that I had multiple certificates configured in the Apple Member Center. Xcode's automatic provisioning only seems to work with one certificate.

要解决该问题,您只需在会员中心手动创建配置文件并将其导入 Xcode.对我来说,只需双击文件即可.它没有显示任何消息,但之后我可以使用该个人资料(它也可能自动从会员中心中提取出来...).

To solve that problem, you can just manually create a provisioning profile in the Member Center and import that into Xcode. For me, just double clicking the file worked. It didn't show any messages but I was able to use the profile afterwards (it might have also automatically pulled it from the Member Center...).

要实际使用该配置文件,请进入应用程序的构建设置.在代码签名"部分下,选择正确的证书(用于创建配置文件的证书),最后选择配置文件本身.它应该看起来像这样:

To actually use that profile, go into the Build Settings of your app. Under the section 'Code Signing', select the right certificate (the one you used to create the profile) and finally the Provisioning Profile itself. It should look something like that:

现在,您应该可以归档您的应用了.

Now, you should be able to archive your app.

非常感谢 reddit 的 brendan09 和 Legolas-the-elf 帮助我解决了这个问题:https://www.reddit.com/r/iOSProgramming/comments/2lsjpe/error_when_trying_to_create_archive_of_ios_app/

Huge thanks to brendan09 and Legolas-the-elf from reddit who helped me solve the issue: https://www.reddit.com/r/iOSProgramming/comments/2lsjpe/error_when_trying_to_create_archive_of_ios_app/

这篇关于尝试创建 iOS 应用程序存档时出错:“无法创建配置文件,因为您的团队没有注册设备."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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