Tag Archives: Xcode

Multiple Xcode targets and tests

Multiple Xcode targets Go to targets -> Select target -> Duplicate (I duplicated a target which name was “tests”) Rename the target to whatever you want (I use “Tooth” here) Go to “Manage Schemes” and delete the scheme with the … Continue reading

Posted in computer | Tagged , , , , , , , | Leave a comment

Automatically increment build number (CFBundleVersion)

David wrote this nice little helper that automatically increments the build version every time. #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c “Print CFBundleVersion” “$INFOPLIST_FILE”) buildNumber=$(echo $buildNumber | sed ‘s/0*//’) buildNumber=$(($buildNumber + 1)) buildNumber=$(printf “%04d” $buildNumber) /usr/libexec/PlistBuddy -c “Set :CFBundleVersion $buildNumber” “$INFOPLIST_FILE” In Xcode just … Continue reading

Posted in computer | Tagged , , , , , , , | Leave a comment