Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh devices in team provisioning profile managed by Xcode 7?

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!

like image 569
Will Larche Avatar asked Sep 23 '15 00:09

Will Larche


People also ask

How do I update Team Provisioning Profile iOS?

Take Xcode -> Preference... Select account and press 'View Details...' Press 'Download All' button in bottom-left corner. New set of Team Provisioning Profiles will be downloaded.

What is iOS Team Provisioning Profile?

The team provisioning profile allows all your apps to be signed and run by all team members on all your team's devices. For an individual, the team provisioning profile allows all your apps to run on all your devices.


2 Answers

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.

like image 86
yood Avatar answered Nov 03 '22 15:11

yood


Simplest way:

Remove the mobileprovision file using terminal

rm + drag the file path from xcode

enter image description here

like image 39
Musa almatri Avatar answered Nov 03 '22 16:11

Musa almatri