Last active
October 7, 2016 08:26
-
-
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**
This file contains 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
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