首页 > 解决方案 > 退出,因为上传符号在验证模式下运行

问题描述

我试图将 Fabric 添加到我的 xcode 项目中。我过去做得很成功,但现在面临一个 react-native 项目的问题。环顾四周,我已经尝试了几乎所有建议的组合。我的设置如下所示:

在此处输入图像描述

我也尝试过使用“${PODS_ROOT}/Fabric/run”的 Pods 版本,但是无论我做什么,我都无法从“添加运行脚本”步骤继续。

为了尝试调试,我已将 Fabric 命令生成的输出定向到文件。它产生以下结果:

在构建阶段模式下运行上传符号正在验证 Crashlytics 的构建环境... 验证成功。退出,因为上传符号在验证模式下运行

非常感谢任何帮助。我很不确定如何从这里拿走它

附加信息

我从头开始重新安装了 Fabric Mac 应用程序,重新启动了 xcode、fabric 应用程序和整个系统。尝试在发布模式下构建,并且在这里几乎尝试了所有内容:

iOS 中的 Crashlytics 不会继续通过 Fabric 应用程序中的“构建您的项目”

标签: iosreact-nativecrashlyticsgoogle-fabric

解决方案


“Exiting because upload-symbols was run in validation mode”消息有点误导,因为它也会在一切正常时出现......我使用的是最新的 Firebase Crashlytics 4.0.0,但它产生的输出与旧版本完全相同织物脚本。

中的评论

${PODS_ROOT}/FirebaseCrashlytics/run

解释清楚:

# run
#
# This script is meant to be run as a Run Script in the "Build Phases" section
# of your Xcode project. It sends debug symbols to symbolicate stacktraces,
# sends build events to track versions, and onboards apps for Crashlytics.
#
# This script calls upload-symbols twice:
#
# 1) First it calls upload-symbols synchronously in "validation" mode. If the
#    script finds issues with the build environment, it will report errors to Xcode.
#    In validation mode it exits before doing any time consuming work.
#
# 2) Then it calls upload-symbols in the background to actually send the build
#    event and upload symbols. It does this in the background so that it doesn't
#    slow down your builds. If an error happens here, you won't see it in Xcode.
#
# You can find the output for the background execution in Console.app, by
# searching for "upload-symbols".
#
# If you want verbose output, you can pass the --debug flag to this script

提醒一下:如果您想在 Console.app 中查看消息,请先启动应用程序...


推荐阅读