xcodebuild 失败,代码为 return:65 - 使用 CLI/Appcenter 但没有错误消息

xcodebuild failed with return code: 65 - using CLI/Appcenter but no error messages

我已将我的 React Native 应用程序升级到 0.59,现在当我尝试使用 AppCenter 或 CLI 存档我的应​​用程序时,出现错误代码 65,但没有任何消息解释该问题...

当我直接从 Xcode

构建时

Xcode版本:10.2.1 反应本机:0.59

Strip /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app/FrenchFounders
    cd /Users/vsts/agent/2.153.2/work/1/s/ios
    export PATH="/Applications/Xcode_10.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_10.2.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.16.0/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_10.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app/FrenchFounders

SetOwnerAndGroup vsts:staff /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app
    cd /Users/vsts/agent/2.153.2/work/1/s/ios
    export PATH="/Applications/Xcode_10.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_10.2.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.16.0/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /usr/sbin/chown -RH vsts:staff /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app

SetMode u+w,go-w,a+rX /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app
    cd /Users/vsts/agent/2.153.2/work/1/s/ios
    export PATH="/Applications/Xcode_10.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_10.2.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.16.0/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /bin/chmod -RH u+w,go-w,a+rX /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app

Validate /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app
    cd /Users/vsts/agent/2.153.2/work/1/s/ios
    export PATH="/Applications/Xcode_10.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_10.2.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.16.0/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    export PRODUCT_TYPE=com.apple.product-type.application
    builtin-validationUtility /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/InstallationBuildProductsLocation/Applications/FrenchFounders.app

Touch /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/BuildProductsPath/Release-iphoneos/FrenchFounders.app.dSYM
    cd /Users/vsts/agent/2.153.2/work/1/s/ios
    export PATH="/Applications/Xcode_10.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_10.2.1.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/Users/vsts/.nvm/versions/node/v8.16.0/bin:/usr/local/lib/ruby/gems/2.6.0/bin:/usr/local/opt/ruby/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /usr/bin/touch -c /Users/vsts/Library/Developer/Xcode/DerivedData/FrenchFounders-gecxqcdasodzgbfdfonlrrdxmrql/Build/Intermediates.noindex/ArchiveIntermediates/FrenchFounders/BuildProductsPath/Release-iphoneos/FrenchFounders.app.dSYM

** ARCHIVE FAILED **

##[error]Error: /usr/bin/xcodebuild failed with return code: 65

这是我的 AppCenter 构建的完整日志:https://gist.github.com/Pandazaur/e61160bda02f0bfe21b85844445db390

如何获得有关构建过程中错误的更多信息?

我找到了解决方案!

  1. 开始Xcode
  2. 运行一个build/archive
  3. 打开视图 > 导航器 > 报告导航器
  4. 如果有错误请查看日志

在我的例子中:我有一个脚本 运行 在构建期间错误退出但我没有处理错误代码。所以 Xcode 继续构建,当构建完成时抛出一个错误 ...