Skip to content

Instantly share code, notes, and snippets.

@vikage
Last active October 7, 2016 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikage/a5656ad1552e0ebd6f28a8910e92b9b3 to your computer and use it in GitHub Desktop.
Save vikage/a5656ad1552e0ebd6f28a8910e92b9b3 to your computer and use it in GitHub Desktop.
Backup DSYM file to Desktop after build **Include to xcode run script - Build pharses**
DSYM_UDID="$(xcrun dwarfdump --uuid ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH} | cut -c 7-42)"
DSYM_LOCATE=${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}
DSYM_BACKUP_FOLDER="$HOME/Desktop/DSYM/${TARGET_NAME}"
mkdir -p $DSYM_BACKUP_FOLDER
DSYM_BACKUP_LOCATE="$DSYM_BACKUP_FOLDER/$DSYM_UDID.DSYM"
if [ ! -e "$DSYM_BACKUP_LOCATE" ]; then
echo "DSYM Backup File not found!... Copying"
cp -r "$DSYM_LOCATE" "$DSYM_BACKUP_LOCATE"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment