Firebase iOS multiple errors when uploading symbol files

独自空忆成欢 提交于 2019-12-08 08:42:45

问题


I'm trying to setup Firebase Crash Reporting on a Swift project. I'm using Xcode 7.3. Firebase Crash Reporting version is 1.0.7.

After following all steps properly, this is the error I'm getting on Xcode, which isn't allowing my project to run:

http://imgur.com/a/DtHTH

I've also tried to manually upload it using batch-upload, but it gives me an error:

./batch-upload: line 121: FIREBASE_API_KEY: environment variable empty or unset

Explicitly add to environment or set GoogleService-Info.plist (-p)
and Info.plist (-i) flags to extract values from the files.

Try "./batch-upload -h" for details.

Am I missing anything?


回答1:


To get the Xcode script to work, the invocation in your run script phase needs to look something like

    # 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 JSON file is a file you've downloaded after creating a service account in the Firebase Console. Here's instructions on how to do that.

To get batch-upload to work, the invocation of that script is more complicated and might look something like

batch-upload -p path/to/your/project/GoogleService-Info.plist -i path/to/your/project/Info.plist  path/to/your/service/account/file/Your\ Project\ Name-abc123def456.json path/to/something.dSYM/DWARF/SomeBinaryName

I'm apologize for this process being a bit arduous and arcane--it's definitely something we're aware of and working on fixing!




回答2:


Answer from: firebase-support@google.com

Can you go over the following items and see it will work:

reset your OAuth credentials, run below command:

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

create new service account and make sure it has editor permission Revise your script into below format:

 # Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
   GOOGLE_APP_ID=1:my:app:id

   # Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
   "${PODS_ROOT}"/FirebaseCrash/upload-sym "/Path/To/ServiceAccount.json"

Remember to follow the instructions on this link

Please make sure your app id and json file path are correct. I hope this helps.



来源:https://stackoverflow.com/questions/39617885/firebase-ios-multiple-errors-when-uploading-symbol-files

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