Reputation: 7293
Ok so i am trying to set up an automated build and signing/packaging of iOS app (continuous integration, you know). Our pool of testers (i.e. UDIDs) is not very stable, so our provision profiles tend to change quite often. To be completely sure that i build with the latest profile (and avoid the common caching pitfalls), i want to clean the buildbox of all previous profiles and download fresh ones from Apple provisioning portal before each build. I seem to be unable to achieve the first step deterministically. I cleaned ~/Library/MobileDevice/Provisioning Profiles/
but XCode still was taking the profiles from somewhere. I cleaned XCode Organizer, in Library ase well as all currently attached devices. Mind that i need to avoid this step, unless there is a known way how to do it from command line! Nevertheless, XCode still was signing happily. In desperation, i did find / -name "*.mobileprovision"
and found copies in no less than 3 temporary-ish locations:
~/Library/Developer/XCode/DerivedData/[ProjectName]-[hash]/
~/Library/Developer/XCode/Archives/[date]/[Projectname].xcarchive/Products/Applications/[Projectname].app/
/private/var/folders/k_/[hash]/T/[UUID]/[Projectname].app/
After deleting all of them, XCode finally admitted there are no profiles (just listing certificates as understandable "Identities without Profiles") and failed in signing.
Is there any determinism in the cleaning? I might be able to figure out the two first paths, but there is no chance with the third one, having two random sequences in it. Did i miss something? Can i depend on XCode using a new profile, if i just delete the old ones from ~/Library/MobileDevice/Provisioning Profiles/
? I would like to avoid spinning off a complete new MacOS VM every time, just to be sure about that :)
For completeness, we are using anything between XCode 4.3 and 4.5, can sync on latest 4.6 if it makes a difference. But i doubt it.
Upvotes: 5
Views: 3261
Reputation: 11
~/Library/MobileDevice/Provisioning Profiles
This help you to delete all the provisioning profile or the selected ones
Upvotes: -1
Reputation: 159
delete
~/Macintosh HD/User/home/Library/MobileDevice/Provisioning Profiles
Upvotes: 0
Reputation: 3713
Removing the whole ~/Library/Developer/XCode
folder did the job for me.
Upvotes: 3