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

时间:2019-06-21 09:21:55

标签: ios xcode react-native xcodebuild fastlane

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

当我直接从Xcode构建时

Xcode版本:10.2.1 React Native: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 个答案:

答案 0 :(得分:1)

我找到了解决方案!

  1. 启动Xcode
  2. 运行构建/归档
  3. 打开视图>导航器>报表导航器
  4. 检查日志中是否有问题

在我的情况下:我有一个在构建期间运行的脚本,该脚本错误退出,但是我没有处理错误代码。所以Xcode继续构建,构建完成后抛出一个错误...