当 Xcode 认为我不是注册的 iOS 开发人员时如何 "select a team"?另外,我是否需要 iPhone 来获取配置文件?

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?

当我尝试为完成的应用程序创建存档时,我收到此消息:

No non-expired provisioning profiles were found. Xcode can resolve this issue by downloading a new provisioning profile from the Membership Center.

我点击Fix Issue

然后我得到:

The selected team doesn't have an iOS Developer Program membership. Select a team with an iOS Developer Program membership and try again.

拥有 iOS 开发者计划会员资格,但我不知道如何 "select a team." 我环顾四周但无法查找有关如何更正此问题的任何资源。还有其他人遇到过这个问题吗?

编辑:

当我转到 Project > General > Identity > Team 时,我的帐户与该应用程序正确关联,它说我拥有 iOS 开发者会员资格。然而,没有配置文件和上述错误仍然存​​在。

编辑2:

当我在 Project > General 的身份部分中单击 "Team" 下方的 Fix Issue 以更正配置文件的缺失时,我得到了一个不同的错误:

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.

我有 Mac,但没有 iPhone..这是否意味着我无法发布该应用程序?或者我可以使用 Mac 吗?我该如何添加它?我在管理器中没有看到任何选项。

根据最后剩余的路障

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.

您需要注册一个设备。如果您没有,请找一位朋友或亲戚,让他们允许您注册他们的设备。它不会给他们带来任何问题。之后您不需要设备进行存档,只需注册它即可生成配置文件。

首先,您必须购买 iOS 开发人员计划。(其费用为每年 99 美元。)

  1. 您必须注册 Apple Developer Program。
  2. 然后为您的应用程序创建应用程序 ID。
  3. 然后创建配置文件和证书。
  4. 将配置文件添加到您的项目。
    1. 创建配置文件时您需要添加设备 uuid。

按照上述步骤操作。我相信你的问题会解决。

您可以将设备设置为generic iOS device。当我 运行 一个存档并将我的 iPhone 作为默认目标时,我会收到您收到的团队错误。将其更改为 generic iOS device 为我解决了这个问题。