xcode 删除了 Provisioning Portal 中的 Team Provisioning Profile:*,怎么办?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6241568/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:12:02  来源:igfitidea点击:

Deleted the Team Provisioning Profile:* in the Provisioning Portal, what to do?

iphonexcodeiosprofileprovisioning

提问by Peter V

I accidentally deleted the Team Provisioning Profile:* in the Provisioning Portal, what should I do now? :/

我不小心删除了 Provisioning Portal 中的 Team Provisioning Profile:*,我现在该怎么办?:/

回答by Rick

I have a MacBook with Xcode 4.2 installed.

我有一台安装了 Xcode 4.2 的 MacBook。

I also, in the course of "getting acquainted" with the iOS Provisioning Portal and Xcode, removed the iOS Team Provisioning Profile:*. I wasn't having any success getting it back, either by removing the device from Xcode Organizer and plugging it back in, or by removing and again creating the Provisioning Profile for my test app. Here's what I did.

我还在“熟悉”iOS 供应门户和 Xcode 的过程中删除了 iOS 团队供应配置文件:*。无论是通过从 Xcode Organizer 中移除设备并将其重新插入,或者通过移除并再次为我的测试应用程序创建配置文件,我都没有成功将其恢复。这就是我所做的。

With the device connected to the computer, Ctrl-Click the device in Xcode Organizer, and select the option Add Device to Provisioning Profile.

将设备连接到计算机后,在 Xcode Organizer 中按住 Ctrl 键并单击设备,然后选择将设备添加到配置文件选项。

Once this was complete, the iOS Team Provisioning Profile:* appeared in Xcode Organizer, it appeared on my device (Settings > General > Profiles), and it appeared in the iOS Provisioning Profile area on the developer.apple.com site.

完成后,iOS Team Provisioning Profile:* 出现在 Xcode Organizer 中,出现在我的设备上(设置 > 通用 > 配置文件),并出现在 developer.apple.com 站点上的 iOS 配置文件区域。

回答by BoltClock

Create it again by unlinking and relinking your device to the Xcode Organizer. Or better yet, create another profile manually in the provisioning portal.

通过取消链接并重新链接您的设备到 Xcode Organizer 再次创建它。或者更好的是,在配置门户中手动创建另一个配置文件。

Whichever you do, remember to check that the new profile appears on your device (Settings > General > Profiles) and that your apps are signed with it.

无论您做什么,请记住检查新配置文件是否出现在您的设备上(“设置”>“通用”>“配置文件”),并且您的应用程序是否已使用它进行签名。

回答by Steven Kramer

In Xcode 4.6, Organizer > Teams > Refresh did it for me. None of the answers above seemed to help. Specifically, refreshing in the Profiles section or Add to Portal in the device section did not work.

在 Xcode 4.6 中,Organizer > Teams > Refresh 为我做了这件事。上面的答案似乎都没有帮助。具体来说,在配置文件部分刷新或在设备部分添加到门户不起作用。

This also, finally, managed to add devices to the Team profile that I had entered manually.

最后,这也设法将设备添加到我手动输入的团队配置文件中。

回答by Jonoogle

Just ran into the same problem. Mine expired and Renew doesn't work because it looks like the day it expires its gone from the provisioning portal. But, good news, just go to the Organizer with the device connected, right click "Provisioning Profiles" and do "Add device to Provisioning Portal" and it will do all the necessary steps to recreate the profile and all your previously provisioned apps are up and running again. All the other devices you have to do "Add" and it will just put the new profile on those devices without having to recreate anything else.

刚遇到同样的问题。我的过期了,续订不起作用,因为它看起来像它过期的那一天从配置门户中消失了。但是,好消息是,只需在连接设备的情况下转到管理器,右键单击“配置配置文件”并执行“将设备添加到配置门户”,它将执行所有必要的步骤来重新创建配置文件,并且您之前配置的所有应用程序都已启动并再次运行。您必须执行“添加”的所有其他设备,它只会将新配置文件放在这些设备上,而无需重新创建任何其他内容。

回答by Kev

I searched everywhere and tried everything and I still could not get Xcode to generate me a new team provisioning profile. Finally I read something in the Apple documentation that said something like:

我到处搜索并尝试了所有方法,但仍然无法让 Xcode 为我生成一个新的团队配置文件。最后,我在 Apple 文档中读到了一些内容,例如:

"When you add a new device to the portal [through Xcode] Xcode will generate a wild card app ID and an iOS Team provisioning profile, if it does not already exist"

“当您将新设备添加到门户时 [通过 Xcode] Xcode 将生成一个通配符应用程序 ID 和一个 iOS 团队配置文件,如果它不存在的话”

Re-registering my existing devices did not work. I had to find a device that was not already registered. Once I added this new device it did, finally, re-generate the profile. Here were the steps I took to recreatemy team provisioning profile (NB: You should probably be the team agent)

重新注册我现有的设备不起作用。我必须找到一个尚未注册的设备。一旦我添加了这个新设备,它最终会重新生成配置文件。以下是我重新创建团队配置文件的步骤(注意:您可能应该是团队代理)

  1. In the provisioning portal delete your iOS Team Provisioning Profile, if it already exists.
  2. In the provisioning portal delete your Wildcard App ID, if it already exists.
  3. Open Xcode and go to the Organiser.
  4. Plug in a new device that you have never registered before.
  5. Right click on the device and select "Add Device to Provisioning Portal"
  1. 在供应门户中删除您的 iOS 团队供应配置文件(如果它已存在)。
  2. 在供应门户中删除您的通配符应用程序 ID(如果它已存在)。
  3. 打开 Xcode 并转到 Organizer。
  4. 插入您以前从未注册过的新设备。
  5. 右键单击设备并选择“将设备添加到配置门户”

Hope that helps someone waste less time than I did.

希望能帮助别人浪费的时间比我少。

回答by tactusben

None of these answers worked for me. I had deleted my iOS Team Provisioning Profile from my computer and when I went to the Apple Developer Portal, the iOS Team Provisioning Profile was there but invalid and I couldn't edit or download it. Deleting devices and re-adding devices didn't work and I didn't have a new device(!?) to register again with. This is what I had to do:

这些答案都不适合我。我已经从我的计算机中删除了我的 iOS 团队配置文件,当我转到 Apple Developer Portal 时,iOS 团队配置文件在那里但无效,我无法编辑或下载它。删除设备和重新添加设备不起作用,我没有新设备(!?)可以再次注册。这就是我必须做的:

  1. Go to the Apple Developer Portaland then click on Provisioning Profiles
  2. Find the old iOS Team Provisioning Profile and delete it
  3. Go to Xcode -> Organizer -> Devices -> Provisioning Profiles and double check there is no reference to an iOS Team Provisioning Profile
  4. If you have a device plugged in, check the Provisioning Profiles under that device and double check there is no reference to an iOS Team Provisioning Profile
  5. This is the magic step I was missing. From the Organizer, go to the Editor menu and select 'Refresh From Developer Portal'.
  6. Magically a new iOS Team Provisioning Profile was created in the Apple Developer Portal which I could just download and use again with my test apps to get them on device. I had to delete any reference to old provisioning profiles from my projects, restart Xcode etc. to get it be recognized again but that's standard practice right?
  1. 转到Apple Developer Portal,然后单击 Provisioning Profiles
  2. 找到旧的 iOS Team Provisioning Profile 并将其删除
  3. 转到 Xcode -> Organizer -> Devices -> Provisioning Profiles 并仔细检查是否没有引用 iOS Team Provisioning Profile
  4. 如果您插入了设备,请检查该设备下的配置文件并仔细检查是否没有引用 iOS 团队配置文件
  5. 这是我错过的神奇步骤。从管理器中,转到编辑器菜单并选择“从开发者门户刷新”。
  6. 神奇的是,在 Apple Developer Portal 中创建了一个新的 iOS Team Provisioning Profile,我可以下载它并再次与我的测试应用程序一起使用,以将它们安装到设备上。我必须从我的项目中删除对旧配置文件的任何引用,重新启动 Xcode 等以使其再次被识别,但这是标准做法,对吗?

Hope that helps someone. I finally found that information herein the docs under one of the troubleshooting sections:

希望能帮助某人。我终于在故障排除部分之一下的文档中找到了该信息:

To create the team provisioning profile using assets already in your account, open the Devices organizer in Xcode and select "Refresh from Developer Portal” from the Editor menu.

要使用您帐户中已有的资产创建团队配置文件,请在 Xcode 中打开设备管理器,然后从编辑器菜单中选择“从开发者门户刷新”。

回答by Mike Lambert

As mentioned in one of the answers in Refresh devices in team provisioning profile managed by Xcode 7?, you can just delete and re-add the Apple ID in the Preferences->Accounts panel, which should regenerate the xcode-managed team provisioning profiles in the Developer Center. (Other answers here and elsewhere suggest to right-click provisioning profiles, which doesn't work for me, or apply to older versions of XCode for which the answers no longer apply.)

正如Xcode 7 管理的团队配置文件中的刷新设备中的答案之一所述,您可以在 Preferences->Accounts 面板中删除并重新添加 Apple ID,这应该会在 Developer Center 中重新生成 xcode 管理的团队配置文件。(此处和其他地方的其他答案建议右键单击配置文件,这对我不起作用,或者适用于答案不再适用的旧版本 XCode。)

回答by Matt Harrington

In September 2015, I fixed this by launching Xcode 6 and creating a new project. I followed this guidance from Apple's troubleshooting documentation, and it fixed my problem:

2015 年 9 月,我通过启动 Xcode 6 并创建一个新项目来解决这个问题。我遵循了Apple 的故障排除文档中的指导,它解决了我的问题:

If a warning message and Fix Issue button appear below the Team pop-up menu in the General pane or in a section of the Capabilities pane in the project editor, read the message and click the Fix Issue button.

如果警告消息和“修复问题”按钮出现在“常规”窗格中的“团队”弹出菜单下方或项目编辑器的“功能”窗格的某个部分中,请阅读该消息并单击“修复问题”按钮。

I now have a wildcard team provisioning profile back in the developer portal.

我现在在开发人员门户中有一个通配符团队配置文件。