使用Codemagic构建整个应用后,我的构建失败并出现错误代码-22020。
Successfully created archive at build/ios/xcarchive/Runner_4myti30z.xcarchive
Export build/ios/xcarchive/Runner_4myti30z.xcarchive to build/ios/ipa
Execute "xcodebuild -exportArchive -archivePath build/ios/xcarchive/Runner_4myti30z.xcarchive -exportPath build/ios/ipa -exportOptionsPlist /Users/builder/export_options.plist COMPILER_INDEX_STORE_ENABLE=NO"
▸ Export Succeeded
Successfully exported ipa to build/ios/ipa/Runner.ipa
Raw xcodebuild logs stored in /tmp/xcodebuild_logs/Runner_x1541cb8.log
然后在发布部分,最后给我报了一个错误。
== 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