如何在eas-build --local中查看xcode日志

Bre*_*mas 5 expo eas

我的构建可以在 EAS 上运行,但在本地失败。命令:

eas build --platform ios --local --profile development
Run Code Online (Sandbox Code Playgroud)

归档步骤失败:

Build failed
Fastlane build failed with unknown error. See logs for the "Run fastlane" and "Xcode Logs" phases for more information.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.
Run Code Online (Sandbox Code Playgroud)

如何查看 Xcode 日志?这些可供 EAS 托管版本下载。

小智 0

使用环境变量

事实证明,日志是短暂的,除非你明确保留它们 - github问题评论

保存日志设置环境变量EAS_LOCAL_BUILD_SKIP_CLEANUP

例子

EAS_LOCAL_BUILD_SKIP_CLEANUP=1 eas build --output dist/ios.ipa --profile preview --platform ios --non-interactive --local --wait
Run Code Online (Sandbox Code Playgroud)

输出

  • 持久日志警告呈黄色

    命令行输出

  • 单击该路径打开此

    日志和临时文件