This page contains a list of convenient commands to manage the project.
make bootstrap
The bootstrap command installs all required tools for deevelopment (see steps below for details).
Running make bootstrap will:
- Run the
homebrew.shscript to install Homebrew if not already installed - Run the
mint.shscript to install Mint if not already installed - Run the
tuist.shscript to install Tuist, if not already installed - Run the
hooks.shscript, installing the pre-commit and git hooks in the local git repository
make rename
Runs rename.sh script that allows the rename of the project and bundle identifier.
make build
Cleans and builds the project using Tuist.
make run
Generate the project workspace and open it using Tuist.
make workspace
Generate the project workspace but does not open it using Tuist.
make module
Runs the module.sh script, that will guide you through creating a new module for this project.
Just answer all the question, and the module will be created and generated by Tuist.
make ci
Running this command will do the following:
- Install tuist if needed
- Generate with workspace using tuist
- Build the workspace using tuist
- Run all tests
There is also make ci_macos and make ci_ios to run the above commands for each platform individually.
make test
Runs all tests for the project, using xcodebuild.
make test_ios
Runs all the ios tests for the project, using xcodebuild.
make test_macos
Runs all the macos tests for the project, using xcodebuild.
make clean
Cleans the project by deleting all the *.xcodeproj and *.xcworkspace files to allow a clean project generation when using Tuist.
make lint
Runs lint.sh which lints all swift files using swiftlint and swiftformat through Mint.
make format
Runs format.sh which formats all swift files using swiftlint and swiftformat through Mint.
make unbootstrap
All the installed tools can easily be removed again by running make unbootstrap.