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-pbxprojor
$ brew tap WorldDownTown/taps
$ brew install sort-pbxprojClone 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.pbxprojFile path to *.xcodeproj or project.pbxproj.
You can see options by sort-pbxproj --help.
- Default: false
sort-pbxprojchecks the filename, and an error occurs if it is notproject.pbxproj. By adding--no-warningsflag, script ignores the filename.



