-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
45 lines (33 loc) · 1.04 KB
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
SHELL := /bin/bash
PROJECT := XcodeProject/sshido.xcodeproj
SCHEME := sshido
CONFIG := Debug
.PHONY: bootstrap generate build run run-sim test clean doctor archive bump beta
bootstrap:
@bash scripts/bootstrap.sh
generate:
@command -v xcodegen >/dev/null || { echo "install xcodegen: brew install xcodegen"; exit 1; }
@cd XcodeProject && xcodegen generate
build: generate
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration $(CONFIG) \
-destination 'generic/platform=iOS' build
run: generate
@bash scripts/run-device.sh
run-sim: generate
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration $(CONFIG) \
-destination 'platform=iOS Simulator,name=iPhone 15' build
@bash scripts/run-sim.sh
test:
swift test
xcodebuild -project $(PROJECT) -scheme $(SCHEME) \
-destination 'platform=iOS Simulator,name=iPhone 15' test || true
clean:
rm -rf build .build DerivedData XcodeProject/sshido.xcodeproj
doctor:
@bash scripts/doctor.sh
archive:
@bash scripts/archive.sh
bump:
@bash scripts/bump-build.sh
beta:
@fastlane beta