-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·48 lines (38 loc) · 1.3 KB
/
build.sh
File metadata and controls
executable file
·48 lines (38 loc) · 1.3 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
46
47
48
#!/bin/sh
NAME=OBTableViewController
PROJECT=$NAME.xcodeproj
SCHEME=$NAME
SIMULATOR_NAME="iPhone 16 Pro"
build() {
xcodebuild build-for-testing -scheme $SCHEME -configuration Debug \
-UseNewBuildSystem=YES \
-derivedDataPath ./build -disable-concurrent-destination-testing \
-destination platform="iOS Simulator,name=$SIMULATOR_NAME" \
-parallel-testing-enabled NO \
-enableAddressSanitizer NO -enableThreadSanitizer NO -enableUndefinedBehaviorSanitizer NO \
-enableCodeCoverage NO COMPILER_INDEX_STORE_ENABLE=NO \
-skipMacroValidation \
ARCH=arm64 \
CODE_SIGN_IDENTITY= \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO | xcbeautify -qq --disable-colored-output
}
unitTest() {
xcodebuild test-without-building -scheme $SCHEME -configuration Debug \
-UseNewBuildSystem=YES \
-derivedDataPath ./build -disable-concurrent-destination-testing \
-destination platform="iOS Simulator,name=$SIMULATOR_NAME" \
-parallel-testing-enabled NO \
-enableAddressSanitizer NO -enableThreadSanitizer NO -enableUndefinedBehaviorSanitizer NO \
-enableCodeCoverage NO COMPILER_INDEX_STORE_ENABLE=NO \
-collect-test-diagnostics never \
-skipMacroValidation \
ARCH=arm64 \
$ONLY_TEST | xcbeautify --disable-colored-output
}
build
if [ $? != 0 ]; then
echo "Build failed"
exit 1
fi
unitTest