Code sign error : Provisioning profile 'ABCD-12345-XYZ' can't be found.If you have encountered an error that reads as above, you probably went through some frustrating time as I did. This error is a different class of error than the one I have previously posted about.
If you get an error message that reads as below, check out my previous post.
Error: Can’t run ‘XYZ’ on the device ‘Developer iPhone’ The device doesn’t have provisioning profile the application was signed with. Add the provisioning profile to this advice via the Organizer, or check the ‘Code Signing Identity’ build setting.
Now back to the main issue. How do you solve a code sign error that says provisioning profile can't be found?
After numerous tries of doing virtually everything, the simplest solution is to follow the steps below.
- Open up the Terminal
- CD into your iPhone project directory
- CD into YourApp.xcodeproj
- Edit the file project.pbxproj by using a text editor (I use vi)
- Search for the string PROVISIONING_PROFILE
- Surround the line containing PROVISIONING_PROFILE, with /* */ (comment block). You can simply erase the line, but I prefer to put it in comments.
- Do this for all lines containing PROVISIONING_PROFILE
- Save file.
-도시
This helped me so much. Thanks!
ReplyDeleteYour welcome. Glad it helped.
ReplyDeleteI also found it works! I try to solve it almost 2 weeks but in vain...now works. But just wonder what action in xcode will this provision_profile lines be written to file?
ReplyDeletethomas
THANK YOU THANK YOU THANK YOU
ReplyDeleteYou've saved me from several hours of misery. Thanks
ReplyDeleteThanks here as well.... This save me some time... thanks so much!
ReplyDeleteYou rock!
ReplyDeleteThank you so much! That was exactly what I needed after the following didn't work for me:
ReplyDeletehttp://www.iphonedevsdk.com/forum/iphone-sdk-development/21137-updated-3-0-now-provisioning-profile-cant-found.html
Thank you. I solved terrible error for your posting.
ReplyDeleteThank you very much!!
You are a God. You have made life worth living again. I can't tell you how desperate I was, or how filled with joy I am now. Seriously. Thank you.
ReplyDeleteThanks so much. I wonder how come after 2 years and surely thousands of complaints apple hasn't simplified the selection of the appropriate provisioning profile.
ReplyDeleteThanks!
ReplyDeleteThank you SO MUCH! Your post just made my day! I was struggling with this for days!
ReplyDeleteFor all those who got help from this post, I sure hope you gave something back to this poster -- in the form of a single click.
Don't be a leech and support this great man!
You are the man! It works! I was struggling with this all night after getting a new phone and having issues with my keys. Thank you very much!
ReplyDeleteI could kiss you
ReplyDeleteA big hug and kiss!!!!
ReplyDeleteI had my app running on the iPod Touch this morning, after many, many gyrations. Then decided to 'clean up' some of the certificates and things that lay strewn about my dev environment. Terrible mistake. Hours have passed -- I could see what was wrong but not how to fix it. This worked!
ReplyDeleteTHANK YOU
Hi, I'm not able to open the. xcodeproj in my text editor. I have TextWrangler and TextEdit, of which neither work.
ReplyDeleteAny ideas?
Thanks!
THANK YOU SO MUCH! THANK YOU!!!!!!!
ReplyDeleteThanks! Saved my day
ReplyDeleteBIG BIG BIG THAAAAAANKS!!! =))))
ReplyDeleteThank you so much dude.
ReplyDeleteI tried your method. The code sign error is gone now. but I am getting new error "Error Starting Executable". :(
ReplyDeleteThanks alot!
ReplyDelete