-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·43 lines (31 loc) · 1.07 KB
/
run
File metadata and controls
executable file
·43 lines (31 loc) · 1.07 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
#!/bin/sh
#
PROJECT=PinLayout.xcodeproj
SCHEME=PinLayoutDemo
BUNDLE_ID=org.openbakery.PinLayoutDemo
APPLICATION_NAME=PinLayoutDemo.app
OPTIONS="-showBuildTimingSummary -derivedDataPath ./build -disable-concurrent-destination-testing" #-quiet"
SIMULATOR_ID=E3D997E5-7AF5-4D3C-9A1E-31B96E8380E6
# add logic to open the simulator when is is not running
open -a simulator
xcrun simctl boot $SIMULATOR_ID
#-quiet \
xcodebuild -scheme $SCHEME -configuration Debug \
-UseNewBuildSystem=YES \
-derivedDataPath ./build -disable-concurrent-destination-testing \
-destination platform="iOS Simulator,id=$SIMULATOR_ID" \
-parallel-testing-enabled=NO \
-enableAddressSanitizer NO -enableThreadSanitizer NO -enableUndefinedBehaviorSanitizer NO \
COMPILER_INDEX_STORE_ENABLE=NO \
ARCH=arm64 \
CODE_SIGN_IDENTITY= \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
build
# | xcpretty
if [ $? != 0 ]; then
echo "Build failed"
exit 1
fi
xcrun simctl install $SIMULATOR_ID ./build/Build/Products/Debug-iphonesimulator/$APPLICATION_NAME
xcrun simctl launch $SIMULATOR_ID $BUNDLE_ID