My presentation at HelsinkiOS January 2015 meetup. What code snippets and scripts do I copy from old project to a new one, e.g. automated build version numbering, debugging and app monitoring.
7. Who$Is$This$App$(Build$Script)
"Run%script%phase"%a/er%“Copy%Bundle%Resources”:
# current branch name, to make collisions less likely across feature branches.
git=`sh /etc/profile; which git`
appBuild=`"$git" rev-list --all |wc -l`
if [ $CONFIGURATION = "Debug" ]; then
branchName=`"$git" rev-parse --abbrev-ref HEAD`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild-$branchName" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
else
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
fi
Jared&Sinclair:&The&Best&of&All&Possible&Xcode&Automated&Build&
Numbering&Techniques
8. Who$Is$This$App$(CI)
if [ -z $JENKINS_BUILD ]; then
# Local build number is not set at jenkins CI
fi
• Krzysztof*Zabłocki:*Overlaying*Applica;on*Version*On*Top*Of*
Your*Icon