iosswiftxcodecrashlyticsdsym

How to run upload symbols to upload dSYMs as a part of Xcode build process?


Ok, so I'm trying to automatically upload dSYMs. I'm following instructions from this official documentation: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports

I'm stuck at "Run the upload symbols script manually" section. There are 3 ways to upload dSYMs. I'm trying to follow the first one - including the following line in your build process: find ${DWARF_DSYM_FOLDER_PATH} -name "*.dSYM" | xargs -I \{\} ${PODS_ROOT}/Fabric/upload-symbols -gsp MyProjectFolder/GoogleService-Info.plist -p ios \{\}

For now I've tried the following:

  1. I go to Project->Scheme->Edit Scheme.
  2. I click on Build->Post actions
  3. I start small - I only want to show "echo" in build process: dSYMs
  4. I run Product->Build
  5. I go to View->Navigators->Show Report Navigator
  6. There's not indication that echo was run.

Where to put this script?

How to find if it is being run or not?


Solution

  • Try the following steps:

    Step 1: Select your application's Xcode project, then your application target, then select "Build Phases".

    Step 2: In Xcode menu, select "Editor", then select "Add Build Phase", and then click on "Add Run Script Build Phase".

    Step 3: You should now see a Run Script section in your Build Phase options.

    Step 4: Paste in the script inside the body of the Run Script Build Phase.

    Keep in mind to set the right file-path(s) in your script(s).