Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot update provisioning profile

Tags:

xcode

ios

A team member needed to register her device so I added her device to Devices section of Apple Dev Portal. I then created a new ad hoc provisioning profile that includes her device and finally deleted the old provisioning profile. But XCode doesn't seem to see this new provisioning profile: enter image description here

To ensure that Apple is using the latest profile I did this:

rm -rF /Users/etayluz/Library/MobileDevice/Provisioning\ Profiles/

And when I try to build Xcode errors out:

error: Build input file cannot be found: '~/Library/MobileDevice/Provisioning Profiles/dab00c70-5073-403b-ae60-e337afeee7fc.mobileprovision'

How do I get Xcode to use the new ad hoc provisioning profile?

I also clicked on "Download Manual Profiles" in Preferences->Accounts - and that does fetch the new profile that I've created - but Xcode is being stupid and still demanding to use the older profile. How do I get Xcode to point and start looking for new profile?

like image 371
etayluz Avatar asked Oct 15 '25 05:10

etayluz


1 Answers

  1. Go to ~/Library/MobileDevice/Provisioning\ Profiles/ and delete all the provisioning profiles from there.
  2. Go to XCode > Preferences > Accounts and select the Apple Id.
  3. Click Download All Profiles. And it will download all the provisioning profiles again.
like image 181
Alka Singla Avatar answered Oct 17 '25 19:10

Alka Singla