Xcode Firebase Crash Reporting Permission Denied

First: Please do not duplicate, as the existing threads did not provide me with a solution.

When I try to configure the error reporting API (FirebaseCrash (1.1.4), for Xcode with Swift 3, I get:

/xy.sh: line 6: /xyfirebase-crashreporting-xxxxx.json: Permission denied

enter image description here

I clicked the plus button, then “New start script phrase”, then I copied / pasted GOOGLE_APP_IDfrom my file plistand put the json file in the Pods folder.

enter image description here

I found this thread , offering to accept ToS at: https://console.cloud.google.com/ But, having hit the link, I can’t find a way to accept ToS, so I think it's already done?

enter image description here

" "

enter image description here

? .

+4
2

  • Derived Data,

  • rm $HOME/Library/Preferences/com.google.SymbolUpload*

  • .

  • xy.json,

, script,

# Replace this path with the path to the key you just downloaded
#Path/To/ServiceAccount.json
JSON_FILE="$PROJECT_DIR/my_firebase_app_crashreporting-of6c5-07b79d228f.json"

# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:xxxxxxxxxxx:ios:xxxxxxxxxxx

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
+1

, upload-sym script. Firebase Crash.

+1

Source: https://habr.com/ru/post/1661693/


All Articles