Evadne Wu :: Human Interface & Technical Delivery Specialist

RAProjectTools »

Summary: Just released RAProjectTools, a collection of Ruby and Bash scripts that make your life easier.

sync-resources / sync-resources.rb

The script in sync-resources.rb looks at your Xcode project, and finds a group named Resources. If it finds one, and the group itself is associated with a directory in your project — for example, Project/Resources — it will attempt to reconcile the contents of the directory with the contents of the group. Files added to the directory will be added to the Xcode group, and files no longer found will have their references removed.

It works well against projects with one single target. It’s possible to extend the script so it is more robust. The script uses the Xcodeproj gem from CocoaPods, and the appropriate Bundler magic is already set up for you.

Invoke sync-resources from the root-level directory containing your project.


The script in next-version bumps the version number by one. It works with Git Flow, the awesome branching model for software development, and AGVTool, Apple’s solution for software versioning.

It works pretty well if you are already using these tools. Remember to start this script from the develop branch, and it’ll make a new Git Flow release with the next version number.

Invoke next-version from the root-level directory containing your project.