简体   繁体   English

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

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

I accidentally deleted the Team Provisioning Profile:* in the Provisioning Portal, what should I do now?我不小心删除了供应门户中的团队供应配置文件:*,我现在该怎么办? :/ :/

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:*.我还在“熟悉” iOS 配置门户和 Xcode 的过程中,删除了 iOS 团队配置文件:*。 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.通过从 Xcode Organizer 中删除设备并将其重新插入,或者通过删除并再次为我的测试应用程序创建配置文件,我没有成功将其恢复。 Here's what I did.这就是我所做的。

With the device connected to the computer, Ctrl-Click the device in Xcode Organizer, and select the option Add Device to Provisioning Profile.将设备连接到计算机后,按住 Ctrl 并单击 Xcode Organizer 中的设备,然后 select 将选项添加到配置文件中。

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

Create it again by unlinking and relinking your device to the Xcode Organizer.通过将您的设备取消链接并重新链接到 Xcode Organizer 来再次创建它。 Or better yet, create another profile manually in the provisioning portal.或者更好的是,在供应门户中手动创建另一个配置文件。

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.无论您做什么,请记住检查新配置文件是否出现在您的设备上(设置 > 常规 > 配置文件)以及您的应用程序是否已使用它签名。

In Xcode 4.6, Organizer > Teams > Refresh did it for me.在 Xcode 4.6 中,Organizer > Teams > Refresh 为我做了。 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.具体来说,在“配置文件”部分中刷新或在设备部分中的“添加到门户”不起作用。

This also, finally, managed to add devices to the Team profile that I had entered manually.最后,这也设法将设备添加到我手动输入的团队配置文件中。

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.但是,好消息,只需 go 到连接设备的 Organizer,右键单击“Provisioning Profiles”并执行“Add device to Provisioning Portal”,它将执行重新创建配置文件的所有必要步骤,并且您之前配置的所有应用程序都已启动并再次运行。 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.您必须执行“添加”的所有其他设备,它只会将新配置文件放在这些设备上,而无需重新创建任何其他内容。

I searched everywhere and tried everything and I still could not get Xcode to generate me a new team provisioning profile.我到处搜索并尝试了所有方法,但仍然无法让 Xcode 为我生成新的团队配置文件。 Finally I read something in the Apple documentation that said something like:最后,我在 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 recreate my 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.在供应门户中删除您的 iOS 团队供应配置文件(如果它已经存在)。
  2. In the provisioning portal delete your Wildcard App ID, if it already exists.在供应门户中删除您的通配符应用程序 ID(如果它已存在)。
  3. Open Xcode and go to the Organiser.打开 Xcode 和 go 给主办方。
  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"右键单击设备和 select “将设备添加到配置门户”

Hope that helps someone waste less time than I did.希望能帮助别人比我浪费更少的时间。

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.我已经从我的计算机中删除了我的 iOS 团队配置文件,当我访问 Apple Developer Portal 时,iOS 团队配置文件在那里,但无效,我无法编辑或下载它。 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:删除设备和重新添加设备不起作用,我没有新设备(?。)再次注册:这是我必须做的:

  1. Go to the Apple Developer Portal and then click on Provisioning Profiles Go 到Apple Developer Portal ,然后单击 Provisioning Profiles
  2. Find the old iOS Team Provisioning Profile and delete it找到旧的 iOS Team Provisioning Profile 并将其删除
  3. Go to Xcode -> Organizer -> Devices -> Provisioning Profiles and double check there is no reference to an iOS Team Provisioning Profile Go 到 Xcode -> 组织者 -> 设备 -> 配置文件并仔细检查没有参考 iOS 团队配置文件
  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如果您插入了设备,请检查该设备下的配置文件并仔细检查是否没有引用 iOS 团队配置文件
  5. This is the magic step I was missing.这是我错过的神奇步骤。 From the Organizer, go to the Editor menu and select 'Refresh From Developer Portal'.从 Organizer,go 到 Editor 菜单和 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.神奇的是,在 Apple 开发人员门户中创建了一个新的 iOS 团队配置文件,我可以下载并再次与我的测试应用程序一起使用,以便在设备上获取它们。 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?我必须从我的项目中删除对旧配置文件的任何引用,重新启动 Xcode 等以使其再次被识别,但这是标准做法对吗?

Hope that helps someone.希望对某人有所帮助。 I finally found that information here in 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 和 select 中的“从开发人员门户刷新”中的设备管理器。

As mentioned in one of the answers in Refresh devices in team provisioning profile managed by Xcode 7?正如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. ,您可以在 Preferences->Accounts 面板中删除并重新添加 Apple ID,这应该会在开发人员中心重新生成 xcode 管理的团队配置文件。 (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。)

In September 2015, I fixed this by launching Xcode 6 and creating a new project. 2015 年 9 月,我通过启动 Xcode 6 并创建一个新项目来解决此问题。 I followed this guidance from Apple's troubleshooting documentation , and it fixed my problem:我遵循了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.如果在 General 窗格中的 Team 弹出菜单下方或项目编辑器中 Capabilities 窗格的部分中出现警告消息和 Fix Issue 按钮,请阅读该消息并单击 Fix Issue 按钮。

I now have a wildcard team provisioning profile back in the developer portal.我现在在开发人员门户中有一个通配符团队配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM