None of the above suggestions fixed my problem with Xcode. After a lot of searching, I found the following which worked for me. I thought I'd post it in hopes that it might help someone else:
--------------------------------------------------------------
My assumption was that once Xcode saw that the old profile didn’t exists anymore it would switch over and use the new one. I cleaned all targets and built again. This time I was treated to a different error: ”Code Sign error: Provisioning profile ‘3E6AA725-6534-46F8-B9CE-D19AC9FD854B’ can’t be found”
After a bit of Googling I discovered that Xcode stores the ID of the provisioning profile in its project.pbxproj file. This discovery led me to the fix:
1. Close your Xcode project
2. Navigate to your project folder in the Finder
3. Right click on your .xcodeproj file and ‘Show Package Contents’
4. Drag the project.pbxproj file to Xcode (or any plain text editor)
5. Perform a search for the term ‘provision’ to find the PROVISIONING_PROFILE entry.
6. Copy the existing profile ID and paste it into the find field of a find and a replace dialog.
7. Open up the Organizer window (Window menu > Organizer) and navigate to your new profile under IPHONE DEVELOPMENT > Provisioning Profiles
8. Click on your provisioning profile and copy its Profile Identifier
9. Paste the string into the replace field in your open find and replace dialog.
10. Replace all instances of the identifier, save the file, close it, and reopen your Xcode project.
11. That should do it, build and go to run your app on your new device.
|