1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Bootstrap `just` once on a new Mac with: brew install just
# Then install project tooling with: just install-deps
install-deps:
@command -v brew >/dev/null 2>&1 || { echo "Homebrew is required. Install it from https://brew.sh, then retry." >&2; exit 1; }
@command -v xcodebuild >/dev/null 2>&1 || { echo "Xcode is required but was not found. Install Xcode from the Mac App Store, open it once, then retry." >&2; exit 1; }
brew bundle install --file Brewfile
@xcrun --find sourcekit-lsp >/dev/null 2>&1 || { echo "sourcekit-lsp is unavailable. Select the full Xcode installation with: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer" >&2; exit 1; }
./scripts/autotag.sh --install
build:
./scripts/dev.sh build
sim:
./scripts/dev.sh sim
# List connected physical iOS devices and their UIDs.
devices:
./scripts/dev.sh devices
# Use the UID from `just devices` when more than one device is connected.
device uid="":
./scripts/dev.sh device {{quote(uid)}}
# Pass `all` to install on every connected device.
device-release uid="":
./scripts/dev.sh device-release {{quote(uid)}}
profile uid="" seconds="40":
./scripts/dev.sh profile {{quote(uid)}} {{quote(seconds)}}
test selector="":
./scripts/dev.sh test {{quote(selector)}}
# Run tests without explicitly opening Device Hub.
test-agent selector="":
./scripts/dev.sh test-agent {{quote(selector)}}
testflight:
./scripts/tag-release.sh testflight
release:
./scripts/tag-release.sh app-store
lint:
swiftlint lint --strict