Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-17-2010, 01:04 AM   #22 (permalink)
c0der
Registered Member
 
Join Date: Oct 2008
Posts: 247
c0der is on a distinguished road
Default

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.
c0der is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,540
Threads: 94,062
Posts: 402,673
Top Poster: BrianSlick (7,989)
Welcome to our newest member, duke22
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.