当 Xcode 认为我不是注册的 iOS 开发人员时如何“选择一个团队”?另外,我是否需要 iPhone 才能获取配置文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28488373/
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
How to "select a team" when Xcode thinks I'm not a registered iOS developer? Also, do I need an iPhone to get a provisioning profile?
提问by temporary_user_name
When I try to create an archive for my finished app, I get this message:
当我尝试为我完成的应用程序创建存档时,我收到以下消息:
No non-expired provisioning profiles were found. Xcode can resolve this issue by downloading a new provisioning profile from the Membership Center.
未找到未过期的配置文件。Xcode 可以通过从会员中心下载新的配置文件来解决此问题。
I click Fix Issue
.
我点击Fix Issue
。
I then get:
然后我得到:
The selected team doesn't have an iOS Developer Program membership. Select a team with an iOS Developer Program membership and try again.
所选团队没有 iOS 开发人员计划成员资格。选择一个拥有 iOS 开发者计划会员资格的团队,然后重试。
I dohave an iOS developer program membership but I can't figure out how to "select a team." I've looked around and can't find any resources on how to correct this. Anyone else had this problem?
我确实拥有 iOS 开发者计划会员资格,但我不知道如何“选择团队”。我环顾四周,找不到有关如何纠正此问题的任何资源。还有其他人有这个问题吗?
Edit:
编辑:
When I go to Project > General > Identity > Team
, my account is correctly associated with the app, and it says that I have an iOS developer membership. Yet no provisioning profile and the above errors persist.
当我转到 时Project > General > Identity > Team
,我的帐户与该应用程序正确关联,并显示我拥有 iOS 开发人员会员资格。然而,没有配置文件并且上述错误仍然存在。
Edit2:
编辑2:
When I click Fix Issue
beneath "Team" in the Identity section of Project > General
, to correct the lack of provisioning profile, I get a different error:
当我单击Fix Issue
的身份部分中的“团队”下方Project > General
以更正缺少配置文件时,我收到一个不同的错误:
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 Membership Center using the Organizer.
无法创建配置文件,因为您的团队没有在会员中心注册的设备。请连接设备,启用它以进行开发,然后使用管理器将其添加到会员中心。
I have a Mac, but no iPhone....does that mean I can't publish the app? Or can I use the Mac? How do I add it? I don't see any option in the organizer.
我有 Mac,但没有 iPhone....这是否意味着我无法发布该应用程序?或者我可以使用Mac吗?我如何添加它?我在组织者中看不到任何选项。
采纳答案by Kris Gellci
Per your last remaining road block
根据您最后剩余的路障
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 Membership Center using the Organizer.
无法创建配置文件,因为您的团队没有在会员中心注册的设备。请连接设备,启用它以进行开发,然后使用管理器将其添加到会员中心。
You need to register a device. If you do not own one, find a friend or relative and ask them to allow you to register their device. It will not create any issues for them. You do not need the device after that for archiving, it just needs to be registered so a profile can be generated.
您需要注册一个设备。如果您没有自己的设备,请找一位朋友或亲戚并让他们允许您注册他们的设备。它不会给他们带来任何问题。之后您不需要该设备进行存档,只需注册即可生成配置文件。
回答by luke
You can set the device to be a generic iOS device
. When I was running an archive with my iPhone as the default target, I would get the team error that you are receiving. Changing this to generic iOS device
solved this issue for me.
您可以将设备设置为generic iOS device
. 当我使用 iPhone 作为默认目标运行存档时,我会收到您收到的团队错误。改变这个generic iOS device
为我解决了这个问题。
回答by Ashok Londhe
Firstly you have to purchase iOS Developer Program.(its cost is 99$ Per Year.)
首先,您必须购买 iOS 开发人员计划。(其费用为每年 99 美元。)
- You must Registered For Apple Developer Program.
- Then Create app id for Your Application.
- Then Create Provisioning profile and Certificate.
- Add Provisioning Profile to your project.
- while creating provisioning profile you need to add device uuid.
- 您必须注册 Apple Developer Program。
- 然后为您的应用程序创建应用程序 ID。
- 然后创建配置文件和证书。
- 将配置文件添加到您的项目中。
- 在创建配置文件时,您需要添加设备 uuid。
Follow above steps. I am sure your problem will solve.
按照以上步骤操作。我相信你的问题会解决。