Add new device to provisioning profile automatically managed by Xcode - ios

I've gt a question regarding Xcode automatically manage signing. Lets say my client wanted to add new device UDID so that device can be used for testing the app. I then added the device UDID in developer.apple.com. Now how do I confirm that the new device is already added to the provisioning profile that is automatically managed by Xcode?
I'm not in possession of the physical device, only the UDID. I'm using Xcode 8.3

Once you added the UDID to Devices, you can go to your project's Provisioning Profile, then you can see the devices amount, if it is not correct, you can click Edit to select the device.

If you're distributing your project via adhoc, then as you already know, UDIDs of the devices that will need to install your project will need to be registered to the distribution provisioning profile on developer.apple.com.
Now how do I confirm that the new device is already added to the provisioning profile that is automatically managed by Xcode?
Go to your Xcode and to your Project's General settings. Check the Signing section and click on the Provisioning Profile i button. You will see the devices included in that provisioning profile.

Related

How to add a device to provisioning profile automatically?

I want to allow my users to install my iOS app with ad-hoc distribution. I want to get their UDIDs and add them to the provisioning profile automatically. I know how to do it manually in the developer portal but what I need is an api to do this process automatically not manually.
Does apple provide any api or other means to add devices to provisioning profile automatically?
(Note that I do not have any device available. I just have their UDIDs)
Xcode will automatically add your devices into your provisioning profile. You will see a warning about that on xcode. You can click "Register" button on it.
Try the below steps
Login to your iphone provisioning portal through developer.apple.com
Add the UDID in devices
Go back to XCode, open up the Organizer and select "Provisioning Profiles", ensure that "Automatic Device Provisioning" is checked on the top right pane, then click on the "Refresh" button, and magically all your devices set in the provisioning portal will be automatically added.

Manually adding a UDID to Xcode 10?

Is there any way to add a UDID manually (one determined via iTunes) to the Apple Developer Portal and the Team Provisioning Profiles? I added the UDID to the Portal, and to all the manual Profiles, but I can't seem to get Xcode to update my app's Team Provisioning Profile to reflect the new UDID.
It seems to have worked in the past when connecting a device to Xcode and letting it set up that device, but I can't do that in this instance (the device is with a team member in another state).

iOS AdHoc Distribution with new UDIDs

I have new devices and added the UDID to my developer account.
After that, all my provisioning is automatically handle by Xcode. However, I found that the new devices cannot use my newly compiled apps. It seems that the UDID is not in the corresponding provisioning profile. However, as it is manage by Xcode, i do not know where can I update it. And the Xcode used provisioning file name also cannot be seen in my account. What can be go wrong here? thanks.
You could go to https://developer.apple.com/membercenter, select your team on the top right, and then Certifcates, Identifiers & Profiles. First, add your new device under Devices and then add that device under Provisioning Profiles —> All. Does it solve your problem?

Adding provisioning profile to new device on existing project

I'm confused as to how to add a provisioning profile to a new device. So I'm using Xcode 4.3.2, and TestFlight. I was given a pre-existing project and a team license via the company I'm helping out. The provisioning profile on developer.apple.com had certain devices already set up. So I added all these devices as testers to TestFlight, sent out an archived build, no problems, worked fine.
Now, one of the testers wants to try out testing on an iPad. So, I sent them an invite via TestFlight, and their device automatically registered on TestFlight. I see their UDID, and device, etc. However, their device is listed under "Teammates Devices Not On This Profile". So, I followed the prompts, exported the missing UDID to a file, and uploaded the file to the Provisioning Portal. I see the iPad now under "Devices" in the Provisioning Portal, however it is listed with 0 profiles associated. How to I associate the provisioning portal of this app with the iPad? Is there some simple step I'm missing? Keep in mind this iPad is in a foreign location, so I have no control over it. I need to tell them what they need to do (or automate it myself). Please help!
You need to add the device to the provisioning profile. Then, build the project again using the updated provisioning profile. And upload that build to test flight.
Or, I believe TestFlight has a new feature that allows you to simply update the build with the new profile without having to create a new build.

How to add a new device to a team provisioning profile

I have a new device for our app to be tested on, so I added it to the provisioning portal.
There are currently two development provisioning profiles - however the provisioning portal will not let me edit the team provisioning profile in order to add the new device.
- But I'm sure this something I've done before as I've previously added new devices as they arrived to enable testing with them.
How can I add the new device if the profile isn't editable? (
(The limit has not been reached, there's only several devices in the portal in total).
For Xcode 5 :
From the Xcode menu select preferences>>Accounts, Select your Apple ID then select Details...
You will get a popup with your Signing Identities and Provisioning Profiles.
Click the Refresh button in the bottom left and the iOS Team Provisioning Profiles get re-generated and downloaded.
You don't have to edit it, click Refresh in Xcode Organizer to make it generate a new one for you automatically.
For new XCode 5 & Xcode 6
Adding Device UDID to Provisioning Profile on developer.apple.com
Login to iOS dev center and go to Device section under 'Certificates, Identifiers & Profiles'
Add new Device using UDID
Update Provisioning profile with newly added Device
Once you have added the device and need to update your developer provision profile
Select newly added device in provisioning profile and click Generate
Update XCode with Updated Provisioning Profile
Finally goto XCode --> Preferences --> Accounts --> ViewDetails -->Refresh -->Done
That's All Go for Clean and Build now.
Cheers!!
On XCode 7 the answers here are inapplicable. https://stackoverflow.com/a/32725552/1449799 should work (delete the profiles in xcode, and tell it to download them again), BUT unlike the instructions at the link, for XCode Version 7.2.1 (7C1002), you (or at least I) cannot select multiple profiles at once.
Open the Organizer window in Xcode. With your device plugged in to the computer, select your device in the Organizer.
In the area detailing your device's specs, click the button titled "Use for Development". You may need to log in to your Apple Developer profile. Once that's done, your device should be listed as part of the provisioning profile and have the profile installed.

Resources