ios:如何在没有系留设备的情况下将新的 UDID 添加到配置文件?

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

ios: How do I add a new UDID to provisioning profile without a tethered device?

iosxcodeprovisioningprovisioning-profileudid

提问by mobibob

I know how to add from the web portal, but this particular provisioning profile is marked as "Managed by Xcode", therefore, I need to either stop managing from xcode or add a UDID into the profile from Xcode.

我知道如何从 Web 门户添加,但是这个特定的配置文件被标记为“由 Xcode 管理”,因此,我需要停止从 xcode 管理或从 Xcode 添加一个 UDID 到配置文件中。

I cannot find any way to "stop managing" in Xcode.

我找不到在 Xcode 中“停止管理”的任何方法。

In Xcode, I know how to add the device by tethering to my laptop and refreshing, but I don't see any option to add a UDID.

在 Xcode 中,我知道如何通过将设备连接到我的笔记本电脑并刷新来添加设备,但我没有看到任何添加 UDID 的选项。

采纳答案by matzino

Connect the phone to your mac and open XCode. Then click under Window->Organizer under Devices you must see your connected phone. There is an Button named "use for Development". Click this and after a few seconds the UDID must be in your team profile and you can install the app.

将手机连接到 Mac 并打开 XCode。然后单击“设备”下的“窗口”->“管理器”,您必须看到已连接的手机。有一个名为“用于开发”的按钮。单击此按钮,几秒钟后 UDID 必须在您的团队配置文件中,您就可以安装该应用程序了。

IMO you cant add devices to your team-provisioning-profile without connected to your mac, if this profile is managed by xcode. Alternative make an ad-hoc-provisioning-profile.

IMO 如果此配置文件由 xcode 管理,则您无法在未连接到 mac 的情况下将设备添加到您的团队配置文件中。另一种方法是创建一个临时配置文件。

Hope that helps?

希望有帮助吗?

回答by mobibob

Here is what worked (multiple times now) ...

这是有效的(现在多次)......

  • (Web) Login to Apple Developer > Member Center > iOS Provisioning > Add Devices
  • Add UDID with a meaningful name
  • Create a Provisioning Profile that includes all of your registered devices
  • (Xcode) Go back to the Organizer
  • Select the Provisioning Profiles section and select the specific profile
  • Check the box "Automatic Device Provisioning"
  • Press the Refresh button
  • (Web) 登录 Apple Developer > Member Center > iOS Provisioning > Add Devices
  • 添加具有有意义名称的 UDID
  • 创建包含所有注册设备的配置文件
  • (Xcode) 回到管理器
  • 选择 Provisioning Profiles 部分并选择特定的配置文件
  • 选中“自动设备配置”框
  • 按刷新按钮

Voila!

瞧!

回答by kolufild

If you simply add the device's UDID to the developer portal, it will be automatically be added to ALL provisioning profiles. You can confirm this by downloading the profile and inspecting it (in plain text editor).

如果您只是将设备的 UDID 添加到开发人员门户,它将自动添加到所有配置文件中。您可以通过下载配置文件并检查它(在纯文本编辑器中)来确认这一点。

回答by Dawid Drozd

Go to: https://developer.apple.com/account/ios/profile/edit

转到:https: //developer.apple.com/account/ios/profile/edit

  • Click All
  • 点击全部

enter image description here

在此处输入图片说明

  • Pick profile
  • 选择个人资料

enter image description here

在此处输入图片说明

  • Click edit
  • Select missing device
  • 点击编辑
  • 选择丢失的设备

enter image description here

在此处输入图片说明

  • Click generate
  • Go to Xcode -> Preferences -> Accounts
  • Select your account and click View Details
  • 点击生成
  • 转到 Xcode -> 首选项 -> 帐户
  • 选择您的帐户,然后单击查看详细信息

enter image description here

在此处输入图片说明

  • Click Download All
  • 点击下载全部