Reputation: 2596
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.
Upvotes: 5
Views: 8906
Reputation: 1
It might be an issue because of typing error. I was wrongly typing "gps" instead of "gsp".
Upvotes: 0
Reputation: 1122
Hope if this help some one
I faced this issue in React-Native App, when manually copy-pasted GoogleService-Info.plist in iOS directory, I tried above all solutions but could not fix, due to xCode reference linking I added GoogleService-Info.plist files via File -> Add files to project or + icon, clean and build again - issue resolved.
make sure you select app and copy if needed checkbox
Upvotes: 2
Reputation: 2596
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
Upvotes: 20