When submitting to apple - "did not contain a .app bund

I know I might get help asking in the regular apple forums, but Im not sure if this is xcodes problem or Unity (even if it is xcode…maybe you guys could help me out?).

Basically, I’ve been testing my game on my ipod touch through Ad-Hoc (read up on some tutorial here: Beta testing on iPhone 2.0 • furbo.org) and that worked just fine, except one day the game started to crash when xcode tried to run the dubugger (a problem for another day). Now Im trying to submit to apple, but keep getting this error “The binary you uploaded was invalid. It did not contain a .app bundle.”, which I find odd since I’ve been installing the game on my ipod for months now.

I read up on this site/other sites on how to set up the xcode project (DaveyJJ’s post was helpful here: http://forum.unity3d.com/viewtopic.php?t=26435,) so apple will accept it, following along and resubmitting (I zip up the “build” folder with default.png and icon.png and submit). But no luck so far. I changed the code signing entitlements to iPhone distribution (instead of my provisioning profile/dist.plist)…not sure if that helped/hindered my problem.

Any help would be greatly appreciated.

You shouldn’t be uploading the build folder, just the app itself (the file within the build folder, or wherever you specified for Xcode to compile to). If you’ve uploaded the folder, that’s why it’ll be giving you that error.

If you’ve followed the guide for a distribution build, you should be fine on that side of things. It’s a bit long-winded but fairly straightforward.

It is much better to make an ipa file. Windows itunes wont read your app properly and will fail. My workflow is this:

  1. compile code in xcode

  2. drag .app on the mac into itunes and it will produce an ipa file in /username/music/itunes/mobile applications/

  3. send out the ipa file to all your testers with the mobileprovision file.

  4. if they havent installed the .mobileprovision file drag it on to itunes.

  5. drag the ipa file on to itunes to install on to the iphone and sync.

I should also note you will need to increase the bundle version number in the player options in unity to let itunes know the file is a new version. Otherwise I have heard from testers sometimes it wont sync the new version of the ipa file.

Thanks, but I seem to be getting the same error (tried just the app and the app + default/icon). When I look at it in the finder it is not named “mygame.app” it’s just “mygame” (the checkmark for “hide extension” is greyed out). And the icon for the game itself has a grey circle with a like through it (like a no smoking sign). Not sure if any of this helps, but I am at a loss here.

Im going to see if downloading the application loader might help (read through some of the apple walkthrough, couldnt find a solution)

Sigsom, would the ipa file work on submitting to apple?

Found the solution, stupidly I forgot to assign the distribution profile to the xcode project.

Good stuff, glad to hear you managed to get it sorted.