SortPbxproj
is a command-line tool that sort "children" and "files" sections in Xcode project.pbxproj files as shown in the screenshots below. This script is inspired on by sort-Xcode-project-file.
before | after |
---|---|
$ brew install WorldDownTown/taps/sort-pbxproj
or
$ brew tap WorldDownTown/taps
$ brew install sort-pbxproj
Clone the master branch of the repository, then run make install
.
$ git clone https://github.com/WorldDownTown/SortPbxproj.git
$ make install
$ mint install WorldDownTown/SortPbxproj
$ sort-pbxproj <path>
ex 1)
$ sort-pbxproj SampleApp.xcodeproj
ex 2)
$ sort-pbxproj SampleApp.xcodeproj/project.pbxproj
File path to *.xcodeproj
or project.pbxproj
.
You can see options by sort-pbxproj --help
.
- Default: false
sort-pbxproj
checks the filename, and an error occurs if it is notproject.pbxproj
. By adding--no-warnings
flag, script ignores the filename.