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?

浪尽此生 提交于 2019-12-11 11:15:51

问题


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.

I click 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.

I do have 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?

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.

Edit2:

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:

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.


回答1:


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.




回答2:


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.




回答3:


Firstly you have to purchase iOS Developer Program.(its cost is 99$ Per Year.)

  1. You must Registered For Apple Developer Program.
  2. Then Create app id for Your Application.
  3. Then Create Provisioning profile and Certificate.
  4. Add Provisioning Profile to your project.
    1. while creating provisioning profile you need to add device uuid.

Follow above steps. I am sure your problem will solve.



来源:https://stackoverflow.com/questions/28488373/how-to-select-a-team-when-xcode-thinks-im-not-a-registered-ios-developer-als

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!