Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.66 KB

README.md

File metadata and controls

63 lines (41 loc) · 1.66 KB

SortPbxproj

platforms License Language: Swift 5.1.3

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
file_inspector_before.png file_inspector_after.png
compile_sources_before.png compile_sources_after.png

Installation

Homebrew (Recommended)

$ brew install WorldDownTown/taps/sort-pbxproj

or

$ brew tap WorldDownTown/taps
$ brew install sort-pbxproj

From Source

Clone the master branch of the repository, then run make install.

$ git clone https://github.com/WorldDownTown/SortPbxproj.git
$ make install

Usage

$ sort-pbxproj <path>

ex 1)
$ sort-pbxproj SampleApp.xcodeproj

ex 2)
$ sort-pbxproj SampleApp.xcodeproj/project.pbxproj

Arguments

path

File path to *.xcodeproj or project.pbxproj.

Options

You can see options by sort-pbxproj --help.

--no-warnings

  • Default: false
  • sort-pbxproj checks the filename, and an error occurs if it is not project.pbxproj. By adding --no-warnings flag, script ignores the filename.