Code signing problems with iPhone and XCode
Posted in Uncategorized on September 3rd, 2009 by Les – Be the first to commentI was having a mare with the “code signing: no provisioning profile found for app id com.yourname… etc.”
I’d followed all the guides, Googled myself half to death and everything, I mean EVERYTHING looked right.
My provisioning profile used a wildcard app id.
Eventually I decided that XCode may not be using the right profile even though it SAID it was and thats when I found this.
http://www.frogameleon.com/blog/iphone-sdk-codesign-error-a-valid-provisioning-profile-is-required-for-product-type-application-in-sdk-device-iphone-os-22
That post did indeed show that the profile was blank. This enabled me to get the right profile in use for the sample app I was working in. However, it still complained about the mismatch in the app id but this time the error message was a bit more helpful.
Although I never got this from any of the documentation, and even though I know the answer now, the videos and Apple’s documentation STILL doesn’t lead me to this conclusion, here’s what my problem finally was:
In my provisioning profile I’d used app id com.jobb.*
This has of course been prefixed with a weired id so it actually looked had an alphanumeric prefix before it along the lines of ABCDEF.com.jobb.*
Everything I read lead me to believe that my bundle id in the info plist for my app should be set to this.
Not the case though. The bundle name just needs to be com.jobble.appname
Although XCode has screwed up my project initially, fixing that lead me to this simple solution.
To test my new found oh-so-obvious knowledge I created a new app from scratch, set the bundle name to com.jobbl.testapp2 and built it straight to my phone without any problems.
So, a mere 6 months after I got my developer certificate I finally have the ability to deploy dev versions direct to the phone. Now I just have to go back to learning objective C and try to come up with some interesting App.
And, just as my friend Craig told me… the answer when I find it is so obvious and so sensible that I can scarcely believe I ever had the problem.
Perhaps this post will help someone. Tonight’s effort was three hours straight and there have been several nights spent on this problem. So, I shall retire to my bed bathed in the warm smugness of having finally figured out something that should never have needed figuring!