gpt4 book ai didi

ios - Flutter:将 dsym 符号上传到带有风格的 Firebase crashlytics

转载 作者:行者123 更新时间:2023-12-03 07:58:25 25 4
gpt4 key购买 nike

我想从 Flutter 应用程序上传具有多种风格的 dsym 符号。每个 GoogleService-Info 都位于 config/flavor_name 文件夹内。我应该在“构建阶段”中添加什么脚本才能将 dsym 上传到 Firebase Crashlytics?

尝试另一个线程的脚本,但似乎不起作用

最佳答案

这是一个更好的脚本。它使用内置 Mac 工具 PlistBuddy,而不是 cat 和 grep。另外,不要忘记步骤 5。从这里:https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=flutter

environment="default"

# Get environment name
if [[ $CONFIGURATION =~ -([^-]*)$ ]]; then
environment=${BASH_REMATCH[1]}
fi

echo $environment

# Name and path of the resource we're reading
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist
GOOGLESERVICE_INFO_FILE=${PROJECT_DIR}/config/${environment}/${GOOGLESERVICE_INFO_PLIST}

# Make sure GoogleService-Info.plist exists
if [ ! -f $GOOGLESERVICE_INFO_FILE ]
then
echo "No GoogleService-Info.plist found. Please ensure it's in the proper directory."
exit 1
fi

# Get app id
APP_ID=$(/usr/libexec/PlistBuddy -c "Print :GOOGLE_APP_ID" "${GOOGLESERVICE_INFO_FILE}")

echo $APP_ID

$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase --validate -ai ${APP_ID}
$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase -ai ${APP_ID}

关于ios - Flutter:将 dsym 符号上传到带有风格的 Firebase crashlytics,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75302880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com