当我尝试运行文档here中提到的脚本时,我收到以下错误。我尝试了多个选项,但我一直收到错误
Library / Preferences / com.google.SymbolUploadToken.plist:无法修改plist,错误:无法使用-json类型解析值
我正在使用的脚本如下所述。请放心,我已将 GOOOGLE_APP_ID 替换为正确的应用ID值,并将 JSON_FILE 路径替换为正确的值
# Replace this path with the path to the key you just downloaded
JSON_FILE=XXX/ServiceAccount.json
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:XXX
defaults write com.google.SymbolUpload version -integer 1 # creates file if it does not exist
JSON=$(cat "${JSON_FILE}")
/usr/bin/plutil -replace "app_${GOOGLE_APP_ID//:/_}" -json "${JSON}" "$HOME/Library/Preferences/com.google.SymbolUpload.plist"
"${PODS_ROOT}"/FirebaseCrash/upload-sym
对此问题的任何帮助/建议都将不胜感激。