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
# Use the number of commits on the master git branch as build number. | |
# first, confirm git exists | |
hash git 2>/dev/null || { echo >&2 "Git required, not installed. Aborting build number update script."; exit 0; } | |
VERSION=$(git --git-dir="${PROJECT_DIR}/.git" --work-tree="${PROJECT_DIR}" rev-list master | wc -l) | |
# eventually this will be (number of commits)+1. Mixed opinion here. +1 on dev machine, but not on build/distr machine. | |
# VERSION=`expr $VERSION + 1` | |
echo "Build number is now $VERSION" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VERSION" ${INFOPLIST_FILE} |
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
# Burns build info into app icon | |
# exit 0 | |
# NOTE: This should still copy icons if git and convert are not installed... | |
# first, confirm git and convert (ImageMagick) exist | |
hash git 2>/dev/null || { echo >&2 "Git required, not installed. Aborting icon burn script."; exit 0; } | |
hash /usr/local/bin/convert 2>/dev/null || { echo >&2 "Convert required, not installed. Aborting icon burn script."; exit 0; } | |
commit=`git rev-parse --short HEAD` |
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
Gets this: https://github.com/trawor/XToDo working in Xcode 6.2. | |
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID | |
(Or just open Xcode's Info.plist file and find it there.) | |
This returns Xcode's DVTPlugInCompatibilityUUID, something like: | |
AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE |
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
Now and then I need to manually symbolicate an Xcode crash report. Xcode can often do this, but not always. Here are steps that are specifically for a Watch Extension, but can be easily applied to just about anything. | |
You need the Watch Extension's dSYM from the archive created when you submitted the app. The general form: | |
$ symbolicatecrash report.crash app.dSYM | |
or more specifically, for a WatchKit Extension: | |
$ export DEVELOPER_DIR=`xcode-select --print-path` | |
$ /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash ~/Desktop/CrashLog1.crash ~/Desktop/yourApp.xcarchive/dSYMs/yourApp\ WatchKit\ Extension.appex.dSYM > ~/Desktop/CrashLog1Symbolicated.crash | |