Reputation: 7005
I can't figure out how to get Xcode to update my provisioning profile after adding more users/devices.
Say I have profile A with people a,b,c in it, and then I add d,e to profile A, how do get them to show with the profile I'm using to create an adhoc build from organizer.
I've tried:
File -> Preferences -> Accounts -> Details and hitting the 'refresh' button on the page of signing identifies and provisioning profiles.
When creating the adhoc build, on the Dropdown list I've tried 'refresh code signing identity...' with no avail.
Thankfully I can update the profile manually via TestFlight, but I'd prefer not to do this, and feel like there is something obvious I'm missing.
Upvotes: 0
Views: 1148
Reputation: 2333
One of my Xcode project uses an Xcode managed provisioning profile. I set GitHub Actions for the repo to build Ad Hoc IPAs. Unfortunately, xcodebuild usually used cached provisioning profiles even if specify -allowProvisioningUpdates.
By my experiments, xcodebuild always used cached profiles during 20 minutes after I added a new test device on developer.apple.com.
Fortunately, I find a way to force update Xcode managed profiles by deleting cached ones before running xcodebuild. Try this line in your CI/CD script:
rm -f ~/Library/Developer/Xcode/UserData/Provisioning\ Profiles/*.mobileprovision
Upvotes: 0
Reputation: 3799
Try this process...
In your Developer Account (developer.apple.com)
In Xcode:
Your provisioning profiles should be updated, however I have found in the past that this process sometimes does not complete immediately ( a matter of 5 to 15 minutes).
Upvotes: 2