Requirements
brew install swiftformat
brew install swiftlint
brew install go-task
task build
Build projecttask run
Run exampletask test
Run teststask format
Format using rules in.swiftformat
task lint
Lint using rules in.swiftlint
task install
Install app in$HOME/.local/bin/
task uninstall
Removes app from$HOME/.local/bin/
task artifacts
Produces artifact in.build/release/
task tag
Pushes git tag fromVERSION
task release
Creates GitHub release from artifactstask sha
Prints hashes from artifactstask clean
Removes build directory.build
task install
to test release- Increase version number in
VERSION
and commit task release
to tag and pushtask sha | cut -d ' ' -f 1 | pbcopy
to copy the build hash to the clipboard- Make changes in homebrew-made and commit and push
brew update
to update tapsbrew upgrade
to upgrade formula
xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation
xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
Try fixing the SDK path (yours appears incorrect):
$ xcrun --show-sdk-path --sdk macosx
You might have this result:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Switch the default SDK location by invoking:
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
See also https://stackoverflow.com/a/43418980