我正在努力通过FaSTLane将dSYM文件上传到Firebase。我的车道如下所示:
desc "Fetch and upload dSYM files to Firebase Crashlytics"
lane :refresh_dsyms_firebase do |options|
download_dsyms(version: options[:version])
upload_symbols_to_crashlytics(gsp_path: "./App/GoogleService-Info.plist")
clean_build_artifacts
end
我确认这是
plist
文件的正确路径,但是当我第一次尝试运行 channel 时,会看到以下内容:[17:22:47]: invalid byte sequence in UTF-8
[17:22:47]: invalid byte sequence in UTF-8
[17:22:47]: invalid byte sequence in UTF-8
然后为找到的每个dSYM文件之一:
[17:22:48]: Uploading '70DBE65E-227E-3754-89F2-EEFA6B8EEC2F.dSYM'...
[17:22:48]: Shell command exited with exit status instead of 0.
我正在尝试确切确定此过程中缺少的内容。有人有想法吗?我对FaSTLane相当陌生,因此绝对可以假设我可能会缺少一些基本知识。 (尽管,退出状态为空有点奇怪)。
快车道2.107.0
最佳答案
对于大多数人来说,这可能不是一个选择,但是我只是从头开始解决了这个问题。如果您是从Fabric过来的,这可能并不完全明显,但我认为我会扯掉创可贴。我最初的设置是使用Fabric(Answers)/Firebase Crashlytics,它是Fabric-> Firebase的迁移路径,尽管很细微,但两者之间的配置略有不同,并导致upload_symbols_to_crashlytics
出现问题
Fabric
中的Info.plist
声明"${PODS_ROOT}/Fabric/run"
替换您现有的运行脚本,并将$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
添加到输入文件AppDelegate
中,删除Fabric.with([Crashlytics.self])
,您也可以杀死import Fabric
,因为Firebase desc "Upload any dsyms in the current directory to crashlytics"
lane :upload_dsyms do |options|
download_dsyms(version: version_number, build_number: build_number)
upload_symbols_to_crashlytics(gsp_path: "./App/Resources/GoogleService-Info.plist")
clean_build_artifacts
end
关于firebase - 通过FaSTLane将dSYMS上传到Firebase,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/53049913/