Skip to content

andreyz/TCBuildtools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 => 'git@github.com:tcurdt/TCBuildtools.git'

to your Podfile.

The code is released under the Apache License 2.0.

Git based Build Numbers

  1. create an (or add to an existing) "Aggregate Target" called "Buildtools"

  2. add a "run script" build phase to the new target calling

     $PROJECT_DIR/Pods/TCBuildtools/Scripts/xcode-buildinfo-git
    
  3. add the new build target to the project's main target as target dependency

  4. change your Info.plist to

     CFBundleGetInfoString BUILD_REVISION
     CFBundleShortVersionString BUILD_VERSION
     CFBundleVersion BUILD_NUMBER
    
  5. 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

Localizable String verifications

  1. make sure rbenv is installed and you did gem install nokogiri at some stage

  2. create an (or add to an existing) "Aggregate Target" called "Buildtools"

  3. 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
    
  4. Optional: Create a .verifystringsignore file excluding

     Pods
    

Turn FIXMEs into warnings

  1. create an (or add to an existing) "Aggregate Target" called "Buildtools"

  2. add a "run script" build phase to the new target calling

    $PROJECT_DIR/Pods/TCBuildtools/Scripts/xcode-todo-warnings

About

Scripts for Xcode builds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 74.5%
  • Shell 25.3%
  • Objective-C 0.2%