I'm ready to submit my first unity iphone game to the app store and i've gone through the iTunes Connect stage and have created a new app listing with my description, screenshots, icon etc. The only thing left for me to do is upload the app binary (zipped up i believe). When I tried uploading the zipped .app file, apple gave me the following error:
"The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate."
After getting this error, I discovered that in the dev center I need to set up a distribution profile, which I have now set up and installed. I then re-built my game, zipped up the .app and tried to upload again, but i'm still getting the same error once it's uploaded.
Am I supposed to do any configuration in Unity3D after creating the distribution provisioning profile or should Unity do it's thing automatically once the profile is installed on this machine?
asked Apr 13 '10 at 09:29 AM
The provisioning profile stuff is actually not handled in Unity at all, except make sure you have the right name in the player settings. (Probably "com.YourCompanyName.NameOfGame" with the last two items set to the actual names.) The rest of it is handled in Xcode. There are detailed docs in the dev center for building your app using the distribution profile, including a couple of quirks you should be aware of. (Particularly doing "clean all targets" before doing the distribution build, otherwise it seems to build OK but probably won't be properly codesigned. They tell you how to check for that too.)
answered Apr 13 '10 at 10:28 AM
Here is the link to the code signing docs:
I also posted this as a response to http://answers.unity3d.com/questions/6536/iphone-build-errors/7894#7894
Hope this helps.
answered Apr 15 '10 at 06:05 PM