iPhone SDK – CodeSign Error during Distribution Build

Hi

I have decided to write about my mistakes while developing for the iPhone (or others). Perhaps it will help someone who runs into the same problem.

I have now been developing for the iPhone for 6 months and I still consider myself as an eager beginner so here it goes:

I was recently battling this code sign error but I had done it all by the book…. (according to me), the profile was fine, I saw a green light in the organizer, the iPhone showed the right profile, the keychain was fine.

There also was a very good post to see if the new provisioning profile was the same as the ID of your app:

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

But no my problem was much simpler. I had forgotten to set my Provisioning Profile in all the right places:

1) Project – Edit Project Settings. The under CodeSigning select “iPhone Developer” both on the line “Code Signing Identity” and “Any iPhone OS” and if all is ok it should show (greyed out) the serial number of your provisioning profile”.

Then close this window

2) In your XCode window look for “Targets” down the left hand side in your taskbar of your SDK development environment, expand on target (but not any further – so no need to see the subfolders of the copy bundle resources and others). Then double click on the target which should have the same name as your app and the same window as before opens up and you need to set the same lines to “iPhone Developer” as under 1) and you should see the greyed out part of your provisioning profile serial number.

That was it for me. Can’t guarantee it will work for you – and in hindsight it was a bit of a stupid mistake.

Hope this helps.

About the Author, Herbert Bosin

SEO Powered by Platinum SEO from Techblissonline