This project holds various build scripts I use in my Xcode projects.
Easiest installation is through CocoaPods. Until there is a release published just add
pod 'TCBuildtools', :git => '[email protected]:tcurdt/TCBuildtools.git'
to your Podfile
.
The code is released under the Apache License 2.0.
-
create an (or add to an existing) "Aggregate Target" called "Buildtools"
-
add a "run script" build phase to the new target calling
$PROJECT_DIR/Pods/TCBuildtools/Scripts/xcode-buildinfo-git
-
add the new build target to the project's main target as target dependency
-
change your Info.plist to
CFBundleGetInfoString BUILD_REVISION CFBundleShortVersionString BUILD_VERSION CFBundleVersion BUILD_NUMBER
-
In your main target set the build settings
- "Info.plist preprocessor prefix file" to
$(PROJECT_TEMP_DIR)/Info.plist.prefix
- "Preprocess Info.plist File" to
YES
- "Info.plist preprocessor prefix file" to
-
make sure
rbenv
is installed and you didgem install nokogiri
at some stage -
create an (or add to an existing) "Aggregate Target" called "Buildtools"
-
add a "run script" build phase to the new target calling
export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" $PROJECT_DIR/Pods/TCBuildtools/Scripts/xcode-verify-strings
-
Optional: Create a
.verifystringsignore
file excludingPods
-
create an (or add to an existing) "Aggregate Target" called "Buildtools"
-
add a "run script" build phase to the new target calling
$PROJECT_DIR/Pods/TCBuildtools/Scripts/xcode-todo-warnings