Firebase crashes unreadable

2020-03-26 12:52发布

I have a problem reading crash reports on FireBase, my reports look like:

FireBase crash report

I've already followed these instructions to symbolicate the stacktrace, got the same result.

  • I'm using Xcode 8
  • My app is made in Swift 3
  • Already wrote "FIRApp.configure()" in my appDelegate.didFinishLaunchingWithOptions method, did make it crash, deattach the debbuger, fix the error, re-run the app, got message "Crash successfully uploaded", etc...
  • I'm using pods(pod 'Firebase' and pod 'Firebase/Crash')
  • I see in the FireBase console my events and crashes(just are unreadable)
  • Installed the script for symbolicate automatically on build(see image):

enter image description here

Already downloaded FireBase provided examples(crash example does not include the scripting for symbolicate automatically)

Already followed this solutions(which didn't work):

and many others.

Already visited last 6 months links on stackoverflow and google groups with this problem.

Nothing has worked, help please!!!

Update#1: I received an email from firebase-support@google.com saying:

reset your OAuth credentials

Didn't work, also I've been testing the script and the upload is correct, I'm starting to think is a Firebase bug

3条回答
狗以群分
2楼-- · 2020-03-26 13:33

Finally, eureka!

I'm not sure about what was the mistake but I paste it here in case anyone is experiencig the same error:

1) I deleted my app on Firebase console

2) Create in Firebase console a new app with different name

3) Create and download a new GoogleService-Info.plist

4) Delete previous keys(rm $HOME/Library/Preferences/com.google.SymbolUpload*)

5) Create new firebase crash configuration

6) Copy the obtained file on step 5 to my root path on my project

enter image description here

7) Enable all permissions in firebase scripts

chmod -R 777 ./Pods/FirebaseCrash

8) Added the script phase as mentioned in the firebase configuration link mentioned in step 5 (I noticed that my not working previous configuration had blank spaces in name, so I created a non blank spaces name)

enter image description here

And finally(I don't know exactly wy) is working:

enter image description here

查看更多
爷的心禁止访问
3楼-- · 2020-03-26 13:45

Your upload script doesn't appear to be setting the GOOGLE_APP_ID env var. The upload run script step should look something like the following:

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

# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"${PODS_ROOT}"/FirebaseCrash/upload-sym "/Users/yourname/yourproject/Your Project Name-5632e387efda6.json"

The below question I answered is a problem similar to yours.

Firebase iOS multiple errors when uploading symbol files

查看更多
男人必须洒脱
4楼-- · 2020-03-26 13:50

Your upload script doesn't appear to be setting the GOOGLE_APP_ID var.It should something like:

# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file

1:xxxxxxxxx:ios:xxxxxxxxxxx=1:my:app:id

# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded

"${PODS_ROOT}"/FirebaseCrash/upload-sym "firebasecrash/firebasecrashreport.json"

Here firebasecrashreport.json is name of ServiceAccount JSON file and firebasecrash is name of my project.

查看更多
登录 后发表回答