Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Google App ID or Google Services file provided while migrating to firebase from Fabric

Tags:

swift

firebase

As Firebase is no longer supporting the Fabric I headed over to migration link & followed the steps.

1) changed the podfile to

# Add the pod for Firebase Crashlytics
pod 'Firebase/Crashlytics'

# Recommended: Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'

2) Then I changed the run script to

"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols"

When I try to run the application it gives the below error

Running upload-symbols in Build Phase mode
Validating build environment for Crashlytics...
Validation succeeded. Exiting because upload-symbols was run in validation mode
[31merror: No Google App ID or Google Services file provided[0m
Command PhaseScriptExecution failed with a nonzero exit code

GoogleService-Info.plist is there in the root directory when Info.plist file is there. It's even checked in the Target Membership.

Why am I getting the above error? Please help.

like image 874
Anirudha Mahale Avatar asked Dec 03 '22 09:12

Anirudha Mahale


1 Answers

I was able to solve the issue by modifying the run script to

"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"

To see crash report in firebase do below steps

  1. Download the appDsyms from appStore.

  2. Run below script in terminal by putting the correct path.

${path to project}/Pods/FirebaseCrashlytics/upload-symbols -gsp ${path to project}/GoogleService-Info.plist -p ios ${path to Dsym file}/appDsyms.zip
like image 83
Anirudha Mahale Avatar answered Dec 26 '22 14:12

Anirudha Mahale