title: ITMS 9000: The binary you upload was invalid
body: <p>When I ran into this issue, my first thought was to search Stack&nbsp;Overflow for solution. I did the search, found several topics. But, unlike my issue, those posters got some clue from the error such as,</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/2097143/app-store-error-the-binary-you-uploaded-was-invalid">App Store error: The binary you uploaded was invalid</a></li>
  <li><a href="https://stackoverflow.com/questions/47941/invalid-iphone-application-binary">Invalid iPhone Application Binary</a></li>
  <li><a href="https://stackoverflow.com/questions/2811671/uploading-binary-iphone-app-the-signature-was-invalid-again-again-and-again">Uploading Binary iPhone App &quot;The signature was invalid&quot; again again and again</a></li>
  </ul>
  
  <blockquote>
    <p>The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate</p>
  </blockquote>
  
  <p>Or this one:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/2709121/the-binary-you-uploaded-was-invalid-the-file-was-not-a-valid-zip-file-error-m?rq=1">&quot;The binary you uploaded was invalid. the file was not a valid zip file&quot; Error message uploading app to iTunes Connect</a></li>
  </ul>
  
  <blockquote>
    <p>The binary you upload was invalid. the file was not a valid zip file</p>
  </blockquote>
  
  <p>Or this one</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/4933093/cfbundleversion-in-the-info-plist-upload-error">CFBundleVersion in the Info.plist Upload Error</a></li>
  </ul>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p>But for me, I got nothing, it just says ERROR ITMS-9000: "The binary you uploaded was invalid"</p>
  
  <p><img src="https://i.stack.imgur.com/5pcYK.png" alt="Enter image description here"></p>
  
  <p>I try to resolve this issue by the following attempts, all of them failed</p>
  
  <ul>
  <li>Test on simulator make sure the app works ... Check!</li>
  <li>Test on device (iPhone 5S, iOS 7 and iPhone 4s iOS 6) to make sure the app works ... Check!</li>
  <li>Clean and build ... Done!</li>
  <li>Make sure that I'm using distribution profile (not ad hoc, dev) ... Check!</li>
  <li>Redo the whole process of certificate and provisioning profile ... Done!</li>
  <li>Check my code signing identity ... Check!</li>
  <li>Check bundle id, there are matches (<a href="http://en.wikipedia.org/wiki/Xcode" rel="nofollow noreferrer">Xcode</a> == App ID in Apple Developer == App in iTunes Connect) ... Check!</li>
  <li>App ID case sensitive check .... Check! (lower case, com.companyname.productname)</li>
  <li>Delete target in project and then create a new one (I have one project, multiple targets) ... Done!</li>
  <li>Delete scheme and then create new one ... Done!</li>
  <li>Check icon size, check loading image size, check pixels per inch ... Check!</li>
  <li>Check Localizable.strings for typo ... Check!</li>
  <li>Delete build foler ... Done!</li>
  <li>Restart Xcode, restart computer ... Done!</li>
  <li>Connect to another wifi router ... Done!</li>
  <li>Submit from my colleague Macbook ... Done!</li>
  <li>Create new App ID, new certificate, new provisioning profile and update iTunes Connect Bundle ID ... Done!</li>
  <li>Take a break for an hour, try again ... Done!</li>
  </ul>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>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.</p>
  
  <p><strong>--- Last Update ---</strong></p>
  
  <p>It turns out to be Apple Server issue</p>
  
  <ul>
  <li>Says, I have an application called "Sample App"</li>
  <li>This app has an app id of com.tartw45.sampleapp</li>
  <li>This app use an App Store Distribution profile called "Simple App App Store Distribution Profile"</li>
  <li>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</li>
  <li>Today (21 July 2014), I tried again with archive from last week, still no success.</li>
  <li>I decide to redo the archive process and I found that "Simple App App Store Distribution Profile" is no longer valid</li>
  <li>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. **</li>
  <li>Then I try to create a new provisioning profile with the same name (Simple App App Store Distribution Profile) but <strong>there is an error says that this profile is already exist, please choose another name</strong> **</li>
  <li>So, I create a new provisioning profile with slightly different name, refresh the provisioning profile in XCode, archive again and then publish .... Works!</li>
  </ul>
  
  <p>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.</p>