如何解决在 FirebaseCrashlytics 的构建阶段运行脚本中上传符号时,Xcode 构建永远不会完成
我在我的应用中应用了 Firebase Crashlytics。我在我的运行脚本中,在 Xcode 中的构建阶段下实现了以下内容:
我还配置了构建设置:
以及我在 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
有没有人成功地在他们的运行脚本中实现了上传符号脚本?任何想法为什么我的 Build 停止并且永远不会完成
解决方法
您不需要“调用上传符号”(脚本中的第二行) 你应该只调用“运行”。 对于运行,还为脚本添加 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.
,
几天前我遇到了同样的问题,将 Firebase 升级到最新版本修复了它。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。