ITMS 9000:您上传的二进制文件无效 [英] ITMS 9000: The binary you upload was invalid

查看:134
本文介绍了ITMS 9000:您上传的二进制文件无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我遇到这个问题时,我的第一个想法是搜索Stack  Overflow for solution。我做了搜索,发现了几个主题。但是,与我的问题不同,这些海报从错误中得到了一些线索,例如,




  • == Apple Developer中的App ID == iTunes Connect中的应用程序).​​..检查!

  • 应用程序ID区分大小写检查。 ......检查! (小写,com.companyname.productname)

  • 删除项目中的目标,然后创建一个新目标(我有一个项目,多个目标)...完成!

  • 删除方案,然后创建新方案...完成!

  • 检查图标大小,检查加载图像大小,检查每英寸像素...检查!

  • 检查Localizable.strings是否错误...检查!

  • 删除构建文件...完成!

  • 重新启动Xcode,重新启动计算机......完成!

  • 连接到另一个wifi路由器......完成!

  • 从我的同事Macbook提交...完成!

  • 创建新的App ID,新证书,新的配置文件并更新iTunes Connect Bundle ID ...完成!

  • 休息一下小时,再试一次......完成!



我真的不知道我做错了什么。自iOS 4以来我一直在提交应用程序,数百个更新。但从来没有碰到这样的事情。事实上,我昨天刚刚更新了另一个与这个代码库共享相同代码库的应用程序,完全没问题。



有没有办法可以收集更多关于无效的二进制Xcode告诉我?或者还有什么我应该尝试的吗?



对于每个发现这个话题的人(2014年7月18日),也许你最好的拍摄可能是,休息几个小时(或者一天)并再试一次。



---最后更新---



原来是Apple Server问题




  • 说我有一个名为Sample App的应用程序

  • 此应用的应用ID为com.tartw45.sampleapp

  • 此应用使用名为Simple App App Store Distribution Profile的App Store Distribution配置文件

  • 回到上周五(2014年7月18日),一切似乎都没问题,没有任何错误指示,但我无法按照上述说明发布应用程序

  • 今天( 2014年7月21日),我上周再次尝试使用存档,仍然没有成功。

  • 我决定重做存档过程,我发现Simple App App Store Distribution Profile不是更长的有效期

  • 我登录developer.apple.com并发现简单App App Store分发配置文件也不再出现在所有配置文件列表中。 **

  • 然后我尝试创建一个具有相同名称的新配置文件(简单应用程序商店分发配置文件)但是有一个错误说该配置文件已经存在,请选择其他名称 **

  • 因此,我创建一个名称略有不同的新配置文件,刷新XCode中的配置文件,再次存档然后发布....工作!



所以,这肯定是Apple Server问题和您的配置文件(**),它与您的XCode版本无关或项目设置(如果您在没有任何理由遇到此问题之前成功提交了一次应用程序)。因此,任何发现此主题的人,请尝试验证您的配置文件并尝试再次发布。

解决方案

我有自昨晚以来同样的问题,终于让它刚刚开始工作。必须经历这个过程


  1. 登录 https://developer.apple.com >>证书,标识符&配置文件>配置配置文件并撤销我公司的配送证书。


  2. 然后Xcode>首选项>帐户> Apple ID>(我的公司)>查看详细信息并刷新证书和配置文件。它提示在开发者档案中没有找到分发证书,并提议代表我申请分发证书。


  3. 启动钥匙串访问>证书并删除所有过期的证书(不知怎的,我有几个)


  4. 我回到 https://developer.apple.com >>证书,标识符&配置文件>配置配置文件并编辑了我的所有手动管理的配置文件(开发 - 必须重新生成 - 和分发 - 必须链接到新创建的分发证书并再次生成)


  5. 再次Xcode>首选项>帐户> Apple ID>(我公司)>查看详细信息并刷新证书和配置文件。


在苹果开发论坛上获得罗德里戈奖 / p>

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"

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.

解决方案

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

这篇关于ITMS 9000:您上传的二进制文件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆