title: Codemagic failed to publish Error: code -22020
body: <p>My build failed using Codemagic with the Error code -22020 after building the whole app.</p>
  <pre><code> Successfully created archive at build/ios/xcarchive/Runner_4myti30z.xcarchive
  Export build/ios/xcarchive/Runner_4myti30z.xcarchive to build/ios/ipa
  Execute &quot;xcodebuild -exportArchive -archivePath build/ios/xcarchive/Runner_4myti30z.xcarchive -exportPath build/ios/ipa -exportOptionsPlist /Users/builder/export_options.plist COMPILER_INDEX_STORE_ENABLE=NO&quot;
  
  
  ▸ Export Succeeded
  
  Successfully exported ipa to build/ios/ipa/Runner.ipa
  Raw xcodebuild logs stored in /tmp/xcodebuild_logs/Runner_x1541cb8.log
  </code></pre>
  <p>Then in the publish part it drops me an error at the end</p>
  <pre><code>== Gathering artifacts ==
  
  
  == Publishing artifacts ==
  
  [skipped]
  
  Publishing Runner.ipa to App Store Connect
  
  /usr/bin/xcrun altool --validate-app -f /Users/builder/clone/build/ios/ipa/Runner.ipa -t ios -u *********@hotmail.com -p @env:APP_STORE_CONNECT_PASSWORD --output-format normal
  
      2020-09-01 08:48:58.794 altool[31554:179398] *** Error: Unable to validate archive '/Users/builder/clone/build/ios/ipa/Runner.ipa'.
      2020-09-01 08:48:58.794 altool[31554:179398] *** Error: code -22020 (Unable to validate your application. We are unable to create an authentication session.)
  
  
  
  Failed to publish to App Store Connect
  
  
  Build failed :|
  
  
  Publishing failed :|
  Failed to publish to App Store Connect
  </code></pre>