Skip to content

Instantly share code, notes, and snippets.

@andrewsardone
Created September 6, 2013 01:32
Show Gist options
  • Save andrewsardone/6458455 to your computer and use it in GitHub Desktop.
Save andrewsardone/6458455 to your computer and use it in GitHub Desktop.
script/sort-xcodeproj for handy Xcode project organization
#!/bin/bash
#
# Usage: script/sort-xcodeproj to sort all root-level Xcode projects.
# This helps keep the Xcode project layout neat and consistent while
# aiding in the prevention of [merge conflicts][mc].
#
# [mc]: http://danieltull.co.uk/blog/2013/09/05/easier-merging-of-xcode-project-files/
SCRIPT_DIR=$(dirname "$0")
cd "$SCRIPT_DIR/.."
perl Vendor/sort-Xcode-project-file *.xcodeproj/project.pbxproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment