Unity iPhone - App Deployment Help

Hi all,

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?

Thanks

Mat

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.)

Here is the link to the code signing docs:

http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/120-Running_Applications/running_applications.html

I also posted this as a response to http://answers.unity3d.com/questions/6536/iphone-build-errors/7894#7894

Hope this helps.