title: How to solve "Application failed codesign verification" when uploading to iTunes Connect?
body: <p>I've got a problem that I couldn't solve with a deep search in different resources as most of the "similar" points out to be an error with Icon.png size, etc...</p>
  
  <p>I've tried to upload my application after verifying that:</p>
  
  <ul>
  <li>Correctly builds and run on my device</li>
  <li>That my certificates are installed properly</li>
  <li>That my certs / profiles are not expired.</li>
  <li>That the Icon.png has the proper size and format of 57x57 PNG.</li>
  <li>And several other things.</li>
  <li>Ran codesign --verify -vvvv MyApp.app which worked fine.</li>
  <li>My ZIP File was properly done</li>
  </ul>
  
  <p>When I've tried to upload through the iTunes connect interface I got the simple error above, and that's why I tried with ApplicationLoader, to try and find out what's causing the error looking at the console.</p>
  
  <p>The console showed the following: </p>
  
  <pre><code>16/02/10 13:25:52   ApplicationLoader[549]  *** Codesign error (please ignore invalid option comments): got requirements(0x800000, 534)
  Executable=/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app/MyApp
  Identifier=com.realtimed.MyApp
  Format=bundle with Mach-O thin (armv6)
  CodeDirectory v=20100 size=829 flags=0x0(none) hashes=33+5 location=embedded
  Signature size=4333
  Authority=iPhone Developer: My Name (XXXXXXXXX)
  Authority=Apple Worldwide Developer Relations Certification Authority
  Authority=Apple Root CA
  Signed Time=16/02/2010 13:22:24
  Info.plist entries=17
  Sealed Resources rules=3 files=28
  Internal requirements count=1 size=144
  
  Executable=/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app/MyApp
  got entitlements(0x800400, 317)
  codesign_wrapper-0.7.3: using Apple CA for profile evaluation
  codesign_wrapper-0.7.3: Caling codesign with the following args:
  codesign_wrapper-0.7.3:    /usr/bin/codesign
  codesign_wrapper-0.7.3:    --verify
  codesign_wrapper-0.7.3:    -vvvv
  codesign_wrapper-0.7.3:    -R=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and certificate leaf[field.1.2.840.113635.100.6.1.4] exists
  codesign_wrapper-0.7.3:    --entitlements
  codesign_wrapper-0.7.3:    /var/tmp/signingbox/codesign_wrapper_entitlements.plist
  codesign_wrapper-0.7.3:    /var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app
  **/var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app: valid on disk
  /var/folders/WZ/WZu24JnOGNe9L79GWq0IlU+++TI/-Tmp-/MyApp.zip/MyApp.app: satisfies its Designated Requirement
  test-requirement: failed to satisfy code requirement(s)
  codesign_wrapper-0.7.3: failed to execute codesign(1)**
  </code></pre>
  
  <p>Any help / feedback or ideas on how to solve the situation would be highly appreciated.</p>