0

我在我的应用中应用了 Firebase Crashlytics。我在 Xcode 的 Build Phases 下的 Run Script 中实现了以下内容: 在此处输入图像描述

我还配置到构建设置中:

在此处输入图像描述

以及我在 Xcode 构建时收到的消息:

Running upload-symbols in Build Phase mode

Validating build environment for Crashlytics...

Validation succeeded. Exiting because upload-symbols was run in validation mode Fetching upload-symbols settings...

Command PhaseScriptExecution failed with a nonzero exit code

有没有人在他们的运行脚本中成功实现了上传符号脚本?任何想法为什么我的构建停滞不前并且永远不会完成

4

2 回答 2

0

几天前我遇到了同样的问题,将 Firebase 升级到最新版本修复了它。

于 2021-02-05T08:30:49.440 回答
0

您不需要“调用上传符号”(脚本中的第二行)您应该只调用“运行”。对于运行,还要为脚本添加 2 个输入文件:

./GoogleService-Info.plist //path to your plist
"${DWARF_DSYM_FOLDERPATH}/${DWARF_DSYM_FILE_NAME}"

您还可以添加 --debug 参数来运行以验证它是否找到正确的 dsym 文件位置 "${PODS_ROOT}/FirebaseCrashlytics/run --debug"

如果您查看 Firebase\FirebaseCrashlytics\run,您将看到以下内容:

# 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.
于 2021-02-04T07:51:19.667 回答