-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
41 lines (33 loc) · 1.08 KB
/
Makefile
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
PLATFORM_IOS = iOS Simulator,name=iPad mini (A17 Pro)
PLATFORM_MACOS = macOS
default: build
build-iOS:
rm -rf "$(PWD)/.DerivedData-iOS"
xcodebuild build \
-scheme 'iOS App' \
-derivedDataPath "$(PWD)/.DerivedData-iOS" \
-destination platform="$(PLATFORM_IOS)"
test-iOS:
rm -rf "$(PWD)/.DerivedData-iOS"
xcodebuild test \
-scheme 'iOS App' \
-derivedDataPath "$(PWD)/.DerivedData-iOS" \
-destination platform="$(PLATFORM_IOS)"
build-macOS:
rm -rf "$(PWD)/.DerivedData-macOS"
xcodebuild build \
-scheme 'macOS App' \
-derivedDataPath "$(PWD)/.DerivedData-macOS" \
-destination platform="$(PLATFORM_MACOS)" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
test-macOS:
rm -rf "$(PWD)/.DerivedData-macOS"
xcodebuild test \
-scheme 'macOS App' \
-derivedDataPath "$(PWD)/.DerivedData-macOS" \
-destination platform="$(PLATFORM_MACOS)" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
build: build-iOS test-macOS
.PHONY: build build-iOS test-macOS
clean:
-rm -rf $(PWD)/.DerivedData-macOS $(PWD)/.DerivedData-iOS