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

故事扮演 提交于 2019-12-03 17:33:45

问题


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.

I cannot find any way to "stop managing" in 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.


回答1:


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.

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.

Hope that helps?




回答2:


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

Voila!




回答3:


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




回答4:


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

  • Click All

  • Pick profile

  • Click edit
  • Select missing device

  • Click generate
  • Go to Xcode -> Preferences -> Accounts
  • Select your account and click View Details

  • Click Download All


来源:https://stackoverflow.com/questions/9097917/ios-how-do-i-add-a-new-udid-to-provisioning-profile-without-a-tethered-device

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