Automatically Upload the dSYM File to Splunk AppDynamics with Each Build

Automating the upload of your dSYM file reduces the number of manual steps required for each build and ensures that all builds have appropriate dSYM files available for Splunk AppDynamics to use.

Before you begin, download the xcode_build_dsym_upload.sh script.

  1. In Xcode, select your project from the Project Navigator.
  2. Click on the application target.
  3. Select the Build Phase tab in the Settings editor.
  4. Click the + icon in the upper left corner of the main panel.
  5. Select New Run Script Phase from the dropdown.
  6. In the script box, add these lines:
    export ADRUM_ACCOUNT_NAME="<Account_Name_HERE>" // From the View License - End User Monitoring section of the License Page
    export ADRUM_LICENSE_KEY="<License_Key_HERE>"  // From the View License - End User Monitoring section of the License Page
    SCRIPT=<Path of the xcode_build_dsym_upload.sh script>
    /bin/sh "${SCRIPT}"
  7. There are also some optional parameters you can set if desired. To set them, add the following line(s) after the second export statement above. Set to 1 to enable.
    export ADRUM_UPLOAD_WHEN_BUILT_FOR_SIMULATOR=0
    export ADRUM_TREAT_UPLOAD_FAILURES_AS_ERRORS=0
    export ADRUM_EUM_PROCESSOR="<EUM_SERVER_URL>"
    The last statement should be used to set the URL for regional cloud location for SaaS-based EUM accounts, or for on-premise server.