I'm trying to upload an application to the iPhone App Store, but I get this error message from iTunes Connect:
The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.
My guess is that it is not properly signed. I have downloaded my App Store distribution certficate, but I can't figure out how to "sign" my application with it. The SDK's documentation about code signing is not very helpful. (FWIW, I can install the app on my iPhone just fine using the development provisioning profile.)
However, it is possible that I screwed things up on a more basic level. Here's what I did to try to prepare it for upload:
In Xcode, select the Device|Release target
Select the target and click the Info button. Change "Code Signing Identity" to "iPhone Distribution", and change "Code Signing Provisioning Profile" to my App Store distribution profile.
Build
Go to the directory where the built MyApp.app bundle is, control-click and choose "Compress" to create MyApp.zip
Upload MyApp.zip to the App Store via iTunes Connect (which resulted in the above error message).
Can anybody give me any hints?
Edit: Found someone with the same problem. Unfortunately, he won't tell us how he fixed it.
http://www.rhonabwy.com/wp/2008/07/18/seattlebus-diary-ongoing-update-saga/#comments
http://www.rhonabwy.com/wp/2008/07/22/seattlebus-diary-update-is-pending-review/
(Note: For general information on submitting iPhone applications to the App Store, see Steps to upload an iPhone application to the AppStore.)