title: "The binary you uploaded was invalid. the file was not a valid zip file" Error message uploading app to iTunes Connect
body: <p>I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the following error message "The binary you upload was invalid. the file was not a valid zip file". I had an app upload ok recently but this app is having problems. So after a while I carefully went through the following steps trying to make sure everything was ok. Any help is appreciated.</p>
  
  <p>The steps:</p>
  
  <ol>
  <li><p>renamed the project
  (Project->Rename... enter name into
  Rename project to:) to release name
  making sure the name has no spaces.</p></li>
  <li><p>Cleaned project</p></li>
  <li>Make sure
          references in build setting reflect
          new app name</li>
  <li>Create new app ID
      matching project name in iPhone
      Provisioning Portal</li>
  <li>Destroyed old
      developer and distributer
      provisioning profiles in
      Provisioning Portal, in XCode and on
      iPhone.</li>
  <li>Create new development
      provisioning profile using new app
      name.</li>
  <li>Install development
      provisioning profile into XCode 8)
      Build (Release) for iPhone OS 3.1.3
      (highest my phone will upgrade to,
      I'm assuming current released
      version)</li>
  <li><blockquote>
    <blockquote>
      <p>Builds, Installs and Runs on actual 
      iPhone: To me this implys App    and
      developer ID's are OK.</p>
    </blockquote>
  </blockquote></li>
  <li><p>Create a distributor provisioning profile
  using existing Distributer ID. </p></li>
  <li>Install distributer ID into XCode</li>
  <li>Clean</li>
  <li>Checked that "Code
       Signing Identity" and "Any iPhone OS
       Device" lines in Build settings are
       set to Distributor ID</li>
  <li>Build for
       release for OS 3.1.3</li>
  <li>Check Build
       results to make sure code is signed
       with Distributor Profile</li>
  <li>Reveal
       .app file and compress (alt click >
       Compress "appName.app")</li>
  <li><p>Upload
       to iTunes connect</p>
  
  <blockquote>
    <blockquote>
      <p>Gives "The binary you uploaded was invalid. The file was not a
      valid zip file"</p>
    </blockquote>
  </blockquote></li>
  </ol>