Reputation: 3096
I have followed proper steps for firebase crash reporting integration but I still have errors like this,
/Users/satish/Desktop/firebase_crash/Pods/FirebaseCrash/upload-sym:174: error: Please ensure you've followed the steps at:: command not found
/Users/satish/Desktop/firebase_crash/Pods/FirebaseCrash/upload-sym:175: error: https://firebase.google.com/docs/crash/ios#upload_symbol_files: No such file or directory
/Users/satish/Desktop/firebase_crash/Pods/FirebaseCrash/upload-sym:197: error: All attempts to find the service account JSON file have failed.
Here is the image of the error that I have faced.
Upvotes: 18
Views: 5826
Reputation: 17
this is my App settings hope this help you to solve this issue
1- the first thing i did is to update the podfile from pod 'Firebase/Crash' to pod 'Firebase/Crashlytics'
2 update the debug optaion click here to open the photo
add the code run crashlytics run code click here to open the photo
"${PODS_ROOT}/FirebaseCrashlytics/run"
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
3 - clean your build
4 - rerun your code
Upvotes: 0
Reputation: 1064
As Google change Fabric to FirebaseCrashlytics this script doesn't work anymore:
"${PODS_ROOT}"/FirebaseCrash/upload-sym-util.bash
"${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}"
be aware of the location for file: GoogleService-Info.plist
if it is inside a folder you should specify it:
"${PROJECT_DIR}/{Folder Name}/GoogleService-Info.plist"
flags:
Upvotes: 1
Reputation: 768
Here is the another way to fix this issue.
Run the command in terminal
rm $HOME/Library/Preferences/com.google.SymbolUpload*
https://firebase.google.com/docs/crash/ios#set_up_crash_reporting
Happy to help :)
Upvotes: 1
Reputation: 3096
Solved in Xcode 8.3.1 with replacing upload-sym with upload-sym-util.bash in script
new script
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=xxxxxxxxxx
"${PODS_ROOT}"/FirebaseCrash/upload-sym-util.bash "${PROJECT_DIR}/medinfo-a7f29-firebase-crashreporting-jv418-3f88c3fc5a.json"
Upvotes: 80