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.
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
Download the appDsyms from appStore.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With