-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 853 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 853 Bytes
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
SHELL := /bin/bash
PLATFORM ?= iOS Simulator
.PHONY: generate build open clean
generate:
@test -f .env || (echo "Error: .env file not found. Copy .env.example to .env and fill in GITHUB_ACCESS_TOKEN." && exit 1)
@source .env && \
git config --global url."https://oauth2:$${GITHUB_ACCESS_TOKEN}@github.com/MoveLab-Studio/".insteadOf "https://github.com/MoveLab-Studio/" && \
.ops/tuist install && .ops/tuist generate; \
EXIT_CODE=$$?; \
git config --global --unset "url.https://oauth2:$${GITHUB_ACCESS_TOKEN}@github.com/MoveLab-Studio/.insteadOf" 2>/dev/null || true; \
exit $$EXIT_CODE
build:
xcodebuild \
-workspace ConnectionsSDKSample.xcworkspace \
-scheme ConnectionsSDKSample \
-destination 'generic/platform=$(PLATFORM)' \
build
open:
open ConnectionsSDKSample.xcworkspace
clean:
.ops/tuist clean
rm -rf DerivedData/