Firebase crashes unreadable

て烟熏妆下的殇ゞ 提交于 2019-12-19 10:26:13

问题


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

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):

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

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

  • link1
  • link2

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


回答1:


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.




回答2:


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




回答3:


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

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)

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



来源:https://stackoverflow.com/questions/40160230/firebase-crashes-unreadable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!