Forked from chrislavender/New Relic BitCode .dSYM file upload script
Created
March 6, 2017 22:48
-
-
Save sjungwirth/55058f8c242a11be0a1cc421c9d2336d to your computer and use it in GitHub Desktop.
Script to upload .dSYM files for BitCode enabled apps to New Relic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Currently New Relic doesn't provide a script to upload .dSYM files for BitCode enabled apps. | |
| # To use this... | |
| # 1) download the dSYM files for a given build from iTunesConnect | |
| # 2) append the file with .zip and then double click to unzip the .dSYMs | |
| # 3) run this script from with in the directory that contains the .dSYM files | |
| count=0 | |
| for DSYM in $( ls -d *".dSYM/" ); do | |
| count=`expr $count + 1` | |
| echo $DSYM | |
| UUID=$(xcrun dwarfdump --uuid $DSYM | tr '[:upper:]' '[:lower:]' | tr -d '-' | awk '{print $2}' | xargs | sed 's/ /,/g') | |
| echo $UUID | |
| ZIPNAME="$count-dSYM.zip" | |
| echo $ZIPNAME | |
| /usr/bin/zip --recurse-paths --quiet --filesync $ZIPNAME $DSYM | |
| curl -F dsym=@$ZIPNAME -F buildId=$UUID -F appName="<App_Name>" -H "X-APP-LICENSE-KEY: <APPLICATION_TOKEN>" https://mobile-symbol-upload.newrelic.com/symbol | |
| rm $ZIPNAME | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment