Frustrated: Application upload problems

So, today I started developing an iPhone application. All works fine, I can play it in the “Remote”, I can then build it independently with XCode and install/play it on the iPodTouch.

BUT, I’m having absolutely no luck uploading it to the App Store, getting the message “The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.” The iPhone Development forum has lots of references to this but I’ve not had any luck with the results.

Note

codesign -vvvv ~/MawsonsHut.app
/Users/pbourke/MawsonsHut.app: valid on disk
/Users/pbourke/MawsonsHut.app: satisfies its Designated Requirement

I do note that Icon.png and Default.png are different sizes in the application contents and I can’t open them. Is this usual?

Ideas?

I also note the circle with 45 degree bar through it for the application icon, is this usual? See attached.

111821--4288--$icon_138.jpg

Obvious question, but are you using an app store distribution provisioning profile?

Certainly.

After “farting around” (technical term) the App Store finally accepted it and now in review. The problem is I don’t know what I did different or what I did to fix it. BTW: I hate magic!

And I suspect there is still an issue with the Icon and Preview files which the Finder tells me are of 0 size inside the Application contents.

What version of the sdk are you using? (not necessarily the one you are building in)

Back when I was still using the 2.0 sdk version of xcode, I would run into similar problems. For some reason I would have to build the app 3 or 5 times before it would ‘magically’ get accepted. I wouldn’t actually do anything different, I’d just build, submit. If it was rejected as invalid, I’d delete the binary and build again. Eventually it would work.

However, since the latest version of the sdk, things have been working much smoother.

I’m using 2.2 … the latest download as of a few days ago.
My upload to the app store failed because the icon was invalid.

I’m not trying to even change the icon, here’s what I do:

  1. In Unity I can “build and go”, all works and the game plays on the iPodTouch.
  2. Do a build in Unity.
  3. In the created project, Icon.png and Default.png look fine.
  4. Run the Xcode project and change the signing identity to my distribution provisioning profile.
  5. Change from simulator to Device-iPhone X.X
  6. Build, it succeeds.
  7. Show the contents of the application and the Icon.png is “missing”.
    See attachment.

Same problem. What do I do?!

OK, perhaps not so bad.

The Icon.png is in fact OK, but whatever variant of png is used, Preview and PhotoShop don’t want know about it and display that question mark. Graphic Converter can view it OK.

The reason my upload to the App store was rejected was that the Icon.png didn’t look the same as the large icon they request as part of the meta data, they think it might “confuse the users”. I’ve replaced the Icon.png in the Xcode project and
I’m uploading it again so we’ll see…

Also checked

codesign -vvvv ~/MawsonsHut.app
/Users/pbourke/MawsonsHut.app: valid on disk
/Users/pbourke/MawsonsHut.app: satisfies its Designated Requirement

In fact if you look at the exif data in Graphic converter for the Icon.png it includes

Warning : Non-standard PNG image (Apple iPhone format)
Warning : Error inflating iCCP

Which probably explains why standard image tools don’t display it.

You can always replace it with your own icon. Submitting an app with the default Unity icon will lead to problems if a lot of people do it, then everyone will have the same icon.

Accepted … for others new to this the take home messages are

  1. You MUST create your own Icon.png if you want to upload to the App Store, otherwise they will reject something that has a large icon image (as supplied through meta data) that is different to the default Unity Icon.png.
  2. The Icon.png replacement needs to be done at the XCode stage, manually or with the various scripts I’ve seen. Personally I found it easy enough to do manually. For testing on a local device I can live with the default icon, it’s only for uploading (a less common event) that the Icon needs replacing.