etayluz
etayluz

Reputation: 16416

Cannot update provisioning profile

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?

Upvotes: 4

Views: 4620

Answers (2)

Simran Singh Sandhu
Simran Singh Sandhu

Reputation: 501

  1. Go to Xcode->Preferences->Accounts
  2. Select the Apple ID and then select the Team which your app is from.
  3. Click on Download Manual profiles
  4. CMD+Shift+K (Clean Project)
  5. Build Project again (CMD + B)

Upvotes: 0

Alka Singla
Alka Singla

Reputation: 389

  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.

Upvotes: 10

Related Questions