Refresh devices in team provisioning profile managed by Xcode 7?

IosXcodeXcode7Provisioning Profile

Ios Problem Overview


It used to be that hitting the refresh arrow/loop button in preferences -> account would pull down a new provisioning profile with all ur new devices.

Now it just downloads the ones you already have. But if the one you need updated is managed by Xcode, theres's no way I can find to add a device to it!

Ios Solutions


Solution 1 - Ios

Here's what worked for me on Xcode 8 & 9.

  1. Add your device to developer.apple.com.
  2. Go to your target's General tab and tap the (i) next to "Xcode Managed Profile", then drag the profile file icon in that popover to your desktop to get the filename of the provisioning profile. enter image description here
  3. Go to ~/Library/MobileDevice/Provisioning Profiles and delete the provisioning profile with the same filename that you got in #2.
  4. Xcode should regenerate the profile for your app with the device added in #1.

My account on developer.apple.com was not showing any Xcode managed profiles so this was the only way to make it work.

Solution 2 - Ios

Simplest way:

Remove the mobileprovision file using terminal

rm + drag the file path from xcode

enter image description here

Solution 3 - Ios

After adding the UDID in the member center I had the same issue. I have to say that I have a XCode managed iOS team development profile.

eventually what's worked is deleting the provisioning profile from the member center.

in xcode preferences, delete the team provisioning profile for the relevant app

go to your target, you'll see a "Fix Issue" button. click it, it will generate a new provisioning profile with the relevant devices.

Hope it helps.

Solution 4 - Ios

I also had this problem. I am using Xcode 7.2. Then its worked with following steps:

  1. Add you new device UDID in the Member Center
  2. Take Xcode -> Preference...
  3. Select account and press 'View Details...'
  4. Press 'Download All' button in bottom-left corner. New set of Team Provisioning Profiles will be downloaded.
  5. Now you can delete the old Team Provisioning Profiles from the list. (Right click -> Move to Trash)
  6. Update Provisioning Profile in 'Build Settings' Tab
  7. Press 'Fix Issue' button in 'General' Tab

Now you can run the app in your new device.

Solution 5 - Ios

Spent a lot of time trying to fix the same issue on Xcode 7 i.e. refreshing the Xcode managed provisioning profiles.

After adding the UDID in the member center, what worked for me was just removing the account from preferences -> account and adding it back again. It updated all the provisioning profiles.

Solution 6 - Ios

Problem: Some time update devices in developer account, causes sometime not able reflect on our automatic management signing even update provisioning profile in xcode account.

Solution: find provisioning profile folder and delete all provisioning. ~/Library/MobileDevice/Provisioning Profiles

Automatic management signing will create new one. your devices will update in provisioning.

Solution 7 - Ios

Update for Xcode 8

With Xcode 8 you don’t need to add the device in the “Member Center” anymore and you can skip some annoying steps.

What you still have to do are the following steps:

  1. Open “Xcode → Preferences…” (,).
  2. Select the corresponding “Apple ID” from the “Apple IDs” list in the left side of the window. Then select the corresponding “Team” from the list in the bottom right side of the window.
  3. Click on “View Details…”, then click on “Download All Profiles”.
  4. Close the “Preferences” window, select the scheme & affected devices and build your project. Eventually let Xcode automatically register the device.

Solution 8 - Ios

I also couldn't find a way to delete or refresh the provisioning profile in Xcode.

I managed to pull the provisioning profile with the new devices by quitting Xcode, deleting the Development provisioning profiles - the ones marked "Active (Managed by Xcode)" - on the Apple Developer site, then reopening Xcode and choosing the team in General settings for the app target. Xcode recreated the profiles (as confirmed on the developer site) and the device was included.

Solution 9 - Ios

I had a similiar problem and found the following - add a file called build.json in your root (same level as config.xml) with the following contents - replace the developmentTeam value with your Team Id as seen here https://developer.apple.com/account/#/membership/

{
  "ios": {
    "debug": {
      "codeSignIdentity": "iPhone Developer",
      "developmentTeam": "DP7KW42777",
      "packageType": "development"
    },
    "release": {
      "codeSignIdentity": "iPhone Developer",
      "developmentTeam": "DP7KW42777",
      "packageType": "app-store"
    }
  }
}

I also found that by adding the following in config.xml under

<platform name="ios">

there was no need anymore to set various Info settings, for example hiding the status bar

<config-file parent="NSBluetoothPeripheralUsageDescription" platform="ios" target="*-Info.plist">
  <string>${EXECUTABLE_NAME} requires bluetooth access to function properly</string>
</config-file>
<config-file parent="NSCalendarsUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires calendar access to function properly</string>
</config-file>
<config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires camera access to function properly</string>
</config-file>
<config-file parent="NSContactsUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires contacts access to function properly</string>
</config-file>
<config-file parent="NSLocationAlwaysAndWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSLocationAlwaysUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSLocationWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} would like to check your location when app is active or in background</string>
</config-file>
<config-file parent="NSMicrophoneUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires microphone access to function properly</string>
</config-file>
<config-file parent="NSMotionUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires motion detection access to function properly</string>
</config-file>
<config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} requires photo library access to function properly</string>
</config-file>
<config-file parent="NSRemindersUsageDescription" platform="ios" target="*-Info.plist">
<string>${EXECUTABLE_NAME} equires reminders access to function properly</string>
</config-file>
<config-file parent="UIStatusBarHidden" platform="ios" target="*-Info.plist">
<true/>
</config-file>
<config-file parent="UIViewControllerBasedStatusBarAppearance" platform="ios" target="*-Info.plist">
<false/>
</config-file>

and finally, by adding

<icon height="1024" src="resources/ios/icon/AppIcon.png" width="1024" />

to the icons list, I no longer needed to manually add the 1024 icon. So now all I do is build, archive and upload without having to change any settings. Hope this helps.

Solution 10 - Ios

  1. Remove old team provisioning profile from site.
  2. Remove all local provisioning profiles (Xcode -> Preferences -> Accounts -> Select account -> Select team -> View details -> Right click any profile -> Show in finder -> Cmd+A -> Cmd+Backspace).
  3. Try build for device.

You will see fix button.

Solution 11 - Ios

In my case nothing listed above helped on Xcode 8.

Here are the steps I tried, which eventually worked to allow Xcode to fix the problem by once again showing me the Register Device button:

  • Removed apple id from Preferences > Accounts
  • Re-added apple id.
  • Restarted Xcode

Sidenote: In my case I think the problem was that my login expired (Xcode told me this in Preferences > Accounts). But even after clicking on Sign In Again nothing worked. I think maybe all I had to do to refresh it was sign in again and restart Xcode for the Register Device(s) button to show.

Solution 12 - Ios

Add your new device id's in apple's console

Simply go to your target settings and select the General tab

Uncheck Automatically manage signing

Let Xcode complain and then re-enable the Automatically manage signing

It should have all the new devices in the provisioning profile when you make a new archive

Solution 13 - Ios

Spent the last hour looking for a solution

I unplugged my iPhone and now it works.

Solution 14 - Ios

I just downloaded the profile from Member Center and hit fix issue in XCode.

I'm on OSX 10.15 and XCode 11.3 beta.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWill LarcheView Question on Stackoverflow
Solution 1 - IosyoodView Answer on Stackoverflow
Solution 2 - IosMusa almatriView Answer on Stackoverflow
Solution 3 - IosYouval VakninView Answer on Stackoverflow
Solution 4 - IosAnusha KottiyalView Answer on Stackoverflow
Solution 5 - IosAaqib AnsariView Answer on Stackoverflow
Solution 6 - IosRavi KumarView Answer on Stackoverflow
Solution 7 - IosRafael BugajewskiView Answer on Stackoverflow
Solution 8 - IosChris PointonView Answer on Stackoverflow
Solution 9 - IosdovkView Answer on Stackoverflow
Solution 10 - IosAlexander DanilovView Answer on Stackoverflow
Solution 11 - IosgregoView Answer on Stackoverflow
Solution 12 - IosCiprianView Answer on Stackoverflow
Solution 13 - IosDazzleView Answer on Stackoverflow
Solution 14 - IosAGDMView Answer on Stackoverflow