Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add device to auto-generated Xcode 5 provisioning profile

I have created a simple project with XCode 5. When I have created the project, XCode automatically generate the provisioning profile for my app. (I see it on my provisioning portal). But now I added and removed some devices from my device list. Is there a way to add a devices to provisioning profile generated by Xcode 5.

Thanks

like image 953
zp26 Avatar asked Oct 02 '13 09:10

zp26


People also ask

How do I add a device to provisioning profile?

Adding a new device to the Ad Hoc ProfileGo to the iOS Provisioning Portal and click on Provisioning. Select the Distribution tab. 2. Select the Ad Hoc profile you want to modify and click 'Edit'.

How do I add a device to my provisioning profile on my iPhone?

After logging in to the iOS Provisioning Portal, click Devices in the sidebar. Click Add Devices. Enter a device name and the device ID. Click Submit.


3 Answers

This is what worked for me:

Go to Apple development portal and add the device (UDID) as you normally do. Till now the UDID is not added to your provisioning profile.

In Xcode, go to project settings and select Add an Account from the Team dropdown.

enter image description here

A dialog will pop up. Just press Cancel. (if xCode automatically generated Profiles that means you'd already have the account setup. You don't need to add a new account)

Now from left side, select the Apple account this project belongs to.

Click View Details

Now just click the refresh button at the bottom left side of the window.

enter image description here

It will take some time to refresh, but when it finishes, the UDID will be added to your X-Code generated Provisioning Profile.

like image 93
Adil Malik Avatar answered Nov 07 '22 17:11

Adil Malik


Right click on the on your device and select "Add Device to Member Center". That will add your device to your provisioning portal.

Example rightclick add device to member center

Per XCode 5, provisioning profiles are managed by XCode 5. You see this in your Developer account.

Screenshot provisioning center for developers @ apple

If you wish to develop, you should create a new profile by clicking [+] on the top right and selecting "iOS App Development". You can then select which device you would like to add to this profile. Later on, you can add additional devices.

Apparently from Xcode, profiles that are managed by Xcode can not be altered.

Screenshot add new development certificate

like image 28
Bart van den Berg Avatar answered Nov 07 '22 17:11

Bart van den Berg


I deleted the provisioning profile from iOS Provisioning Profiles on developer.apple.com and then xCode automagically regenerated it with the new devices added.

Took a few "update please" in Preferences->Accounts->Provisioning Profiles in xCode before the change happened.

like image 2
Benedicte Raae Avatar answered Nov 07 '22 18:11

Benedicte Raae