Unable to upload dSYM file to Fabric Crashlytics

Viewed 1302

Fabric is already integrated in project. As firebase is removing upload dSYM option from dashboard so I decided to write script suggested in Firebase.

I already set DWARF with dSYM in the build settings

I have tried following both script under Build Phase in run script

find dSYM_directory -name "*.dSYM" | xargs -I \{\} $PODS_ROOT/Fabric/upload-symbols -gsp /path/to/GoogleService-Info.plist -p platform \{\}

This Script is look like this

find "/Users/ics.ketan/Library/Developer/Xcode/DerivedData/Vault-dwkanmvgsftfojeyqqvahiqypywf/Build/Products/Debug-iphoneos" -name "*.dSYM" | xargs -I \{\} $PODS_ROOT/Fabric/upload-symbols -gsp "/Users/ics.ketan/Documents/Gitlab/Vault/Code_base/GoogleService-Info.plist" -p ios \{\}

And

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

I am getting following logs

Validating build environment for Crashlytics... Validation succeeded. Exiting because upload-symbols was run in validation mode

Please Guide.

2 Answers

Refer to this guide.

Important: If you're working with an app that you previously linked from Fabric to Firebase Crashlytics, pass in your Fabric API Key to run the upload symbols script. That is, in the following options to run the script, use -a fabric-api-key instead of -gsp path/to/GoogleService-Info.plist.

You can use another method for Upload dSYMs file on firebase Crashlytics.

Follow this step given below for generate dSYMs of your project.

  1. Generate Archive of your project and open your xcode Organizer. See below image. enter image description here

  2. Select your Project recent archive. And Right click on it And press Show In finder.enter image description here

  3. By Right click open Show Package and Content. Select Your dSYMs file and make Zip and Upload it. enter image description here

Related