Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
328 views
in Technique[技术] by (71.8m points)

ios - ITMS 9000: The binary you upload was invalid

When I ran into this issue, my first thought was to search Stack Overflow for solution. I did the search, found several topics. But, unlike my issue, those posters got some clue from the error such as,

The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate

Or this one:

The binary you upload was invalid. the file was not a valid zip file

Or this one

The binary you uploaded was invalid. The key CFBundleVersion in the Info.plist file must contain a higher version than that of the previously uploaded version.

But for me, I got nothing, it just says ERROR ITMS-9000: "The binary you uploaded was invalid"

Enter image description here

I try to resolve this issue by the following attempts, all of them failed

  • Test on simulator make sure the app works ... Check!
  • Test on device (iPhone 5S, iOS 7 and iPhone 4s iOS 6) to make sure the app works ... Check!
  • Clean and build ... Done!
  • Make sure that I'm using distribution profile (not ad hoc, dev) ... Check!
  • Redo the whole process of certificate and provisioning profile ... Done!
  • Check my code signing identity ... Check!
  • Check bundle id, there are matches (Xcode == App ID in Apple Developer == App in iTunes Connect) ... Check!
  • App ID case sensitive check .... Check! (lower case, com.companyname.productname)
  • Delete target in project and then create a new one (I have one project, multiple targets) ... Done!
  • Delete scheme and then create new one ... Done!
  • Check icon size, check loading image size, check pixels per inch ... Check!
  • Check Localizable.strings for typo ... Check!
  • Delete build foler ... Done!
  • Restart Xcode, restart computer ... Done!
  • Connect to another wifi router ... Done!
  • Submit from my colleague Macbook ... Done!
  • Create new App ID, new certificate, new provisioning profile and update iTunes Connect Bundle ID ... Done!
  • Take a break for an hour, try again ... Done!

I really have no idea what did I do wrong. I've been submit app since iOS 4, hundreds of updates. But never ran into anything like this. In fact, I've just update another app yesterday which share the same codebase with this one, no issue at all.

Is there a way I can gather more information about "the invalid binary" Xcode is telling me? Or is there anything else I should try?

For everyone who found this topic (18 July 2014), maybe your best shot might be, taking a break for few hours (or a day) and try again.

--- Last Update ---

It turns out to be Apple Server issue

  • Says, I have an application called "Sample App"
  • This app has an app id of com.tartw45.sampleapp
  • This app use an App Store Distribution profile called "Simple App App Store Distribution Profile"
  • Back to last Friday (18 July 2014), everything seems ok, no indicator of any error but I couldn't publish the app as I stated above
  • Today (21 July 2014), I tried again with archive from last week, still no success.
  • I decide to redo the archive process and I found that "Simple App App Store Distribution Profile" is no longer valid
  • I login to developer.apple.com and found that "Simple App App Store Distribution Profile" also no longer there in the list of all provisioning profile. **
  • Then I try to create a new provisioning profile with the same name (Simple App App Store Distribution Profile) but there is an error says that this profile is already exist, please choose another name **
  • So, I create a new provisioning profile with slightly different name, refresh the provisioning profile in XCode, archive again and then publish .... Works!

So, It's definitely Apple Server issue and your provisioning profile (**), it has nothing to do with your XCode version or project setting (if you successfully submitted your app once before running into this issue with no reason). So, anyone who found this topic, please try to validate your provisioning profile and try to publish again.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I was having the same issue since last night and finally got it to work just now. Had to go through this process

  1. Logged in on https://developer.apple.com> > Certificates, Identifiers & Profiles > Provisioning Profiles and revoked my company's Distribution Certificate.

  2. Then Xcode > Preferences > Accounts > Apple IDs > (my company) > View Details and refreshed the certificates and Provisioning Profiles. It prompted that no Distribution Certificate was found on the Developer Profile and offered to request one on my behalf, which it did.

  3. Launched Keychain Access > Certificates and removed all of the expired Certificates (somehow I had a few of them)

  4. I went back to https://developer.apple.com> > Certificates, Identifiers & Profiles > Provisioning Profiles and edited all of my manually managed Provisioning Profiles (Development — which had to be re-generated — and Distribution — which had to be linked to the newly created Distribution Certificate and generated again)

  5. Once again Xcode > Preferences > Accounts > Apple IDs > (my company) > View Details and refreshed the certificates and Provisioning Profiles.

Credit to Rodrigo on the apple dev forums


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...