Skip to content

withzombies/sort-xcodeproj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sort-xcodeproj

Script to sort "children" and "files" sections in Xcode project.pbxproj files. This script is lightly modified the version found in Apple's WebKit repository. This version adds a --check flag, which only checks if the project file is sorted. --check makes this script suitible for use in commit hooks and CI.

Usage

perl sort.pl [options] list of projects...

Example usage

$ perl sort.pl --check TestApp.xcodeproj
Projects must be sorted in --check mode at sort.pl line 123, <IN> line 208.
$ echo $?
25

Extras

Additionally, an example git pre-commit hook is provided. To use this, place it in your project's .git/hooks folder as pre-commit.

About

alphabetically sort xcode project files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published