Cannot Add Device with iOS App

Problem Details

  • I added a UDID in the Developer Center and updated my provisioning profile. I then did Archive/Export on Xcode and uploaded the created IPA files. However, the DeployGate service displays the message "There are no added or deleted UDIDs."

Cause

  • At export time, a provisioning profile that is not the one that you updated was being used.
  • A provisioning file that is not associated with your App ID was updated.
If a provisioning profile with the same name and expiry date already exists, even if you install the updated provisioning profile, the already existing one might be used at the time of doing the export. With Xcode 6 or earlier, you could do an update from “Accounts/View Details...”; however, with Xcode 7, this has been changed to “Download All,” so there is no longer a useful function for doing this. In this case, please empty the Provisioning Profiles folder first, and then do “Download All” (or do an export) to resolve the problem. For more details please see below.

Solution


Xcode's export functionality automatically selects a provisioning file based on the App ID. In this case, it is possible that at export time it unintentionally used a different provisioning file from the one that you used for adding the device in the Developer Center.

To ensure that it selects the correct provisioning file, please follow the steps below:

Delete Unnecessary Files from the Developer Center's Provisioning Profiles

In some scenarios, such as when there are multiple iOS distribution profiles for the same App ID, the incorrect profile may be selected. Therefore, you need to delete any unnecessary files.

Delete the Provisional Profiles Cached by the Local Xcode

Select all the mobileprovision files found in ~/Library/MobileDevice/Provisioning Profiles and throw them in the recycle bin. (Or select your account from Xcode - Preferences - Accounts, select the list of all the profiles displayed by “View Details...,” and right click and select “Move to Trash.”)
With Xcode 6 or later, the necessary mobileprovision files are automatically downloaded by the Developer Center when doing an export, so these can be deleted without a problem.

Create a provisioning file with a new name, and then archive it and export it. Please verify that at export time, the profile with the newly created name has been selected correctly.


Provisioning Profiles - Apple Developer Center:



Xcode Summary from archive to export:




Feedback and Knowledge Base