ChatGPT解决这个技术问题 Extra ChatGPT

Xcode 8.3 / Xcode 9.0 Refresh provisioning profile devices

I have added some new devices. How can I refresh the provisioning profile, as Xcode 8 automatically manages signing assets?

I have found this question: Refresh devices in team provisioning profile managed by Xcode 7? – but we can't do that in Xcode 8.3.

I don't have the device with me so I manually added it in the portal and also edited the provisioning profile but Xcode is not re-downloading it.


p
pkamb

This is what you need to do:

Go to ~/Library/MobileDevice/Provisioning\ Profiles/ and delete all the provisioning profiles from there. Go to Xcode > Preferences > Accounts and select the Apple ID. Click Download Manual Profiles or Download All Profiles. And it will download all the provisioning profiles again.

https://i.stack.imgur.com/F0xOV.png


What a hassle for such an easy task. Every new xcode version the shortcut to refreshing the prov profiles seems to be removed. Thanks for this
I can't find any MobileDevice folder in Library
@Ionut use terminal to open this folder: open ~/Library/MobileDevice
If the app is open in Xcode, and you can match the date of the provisioning profile in ~/Library, you can delete one profile and by the time you've returned to Xcode, the profile has already being used.
omg what the hell apple, always put us in embarrassing situations with clients.
M
Musa almatri

Remove the .mobileprovision file for the app this way :

The command in the terminal is : rm

https://i.stack.imgur.com/jgdLo.gif


this forces you to use a new bundle id on Xcode 8.x
@vishaldharankar No, this has nothing to do with the bundle id
when you delete the profiles it tries to register as a new app and generate profiles and thus when it uses existing bundle id which is already registered it gives error.
jesus, it never ever crossed my mind that I could do something like this, thank you very much!
This should be the top answer!
A
AiOsN

Step 1. Click on desktop then from top menu Go > Go to Folders...

https://i.stack.imgur.com/ZqoF0.png

Step 2. Write/Paste following path and enter:

~/Library/MobileDevice/Provisioning\ Profiles/

https://i.stack.imgur.com/DgcGq.png

Step 3. Select Provisioning Profiles folder and delete all provisions profiles in it

https://i.stack.imgur.com/Oc7LE.png

Step 4. Go to xCode Preference > Accounts > Apple ID and then click on Download Manual Profiles button

https://i.stack.imgur.com/OBmYy.png


The first image solved my search. I didn't know where to find 'MobileDevice' folder . I tried with finder for path ~/Library/MobileDevice/Provisioning\ Profiles/ but no luck, this ended my search.
I had to restart Xcode after doing this to get this to work. (Possibly I could have just restarted Xcode)
Thanks. I needed to do this after upgrading to Xcode Version 13.0.
V
Ved Rauniyar

First delete the provisioning profile from ~/Library/MobileDevice/Provisioning\Profiles/ , then edit provisioning profile from developer portal and select all devices while editing Provisioning profile. Then download this profile and open in your Xcode.


w
wottle

To add devices to your provisioning profile in Xcode 8 with automatic code signing, you simply need to build to the device in Xcode. Xcode will add the device's UDID and regenerate the provisioning profile automatically. If you don't have physical access to the device, I don't think there is a way to add it to your provisioning profile without going back to manually managing your devices and profiles.


This won't work for phones you don't have access to though
That is true, My answer was to the original question, which made no mention of not having the device and manually managing the provisioning profile. The original question stated just that they were using Automatic Code Signing (they apparently aren't).