-
Notifications
You must be signed in to change notification settings - Fork 17
/
test.zsh
executable file
·24 lines (20 loc) · 976 Bytes
/
test.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env zsh
rm -rf .build build
swift build
# I don't know why, but "xcodebuild" doesn't work
# without explicit setting of "SYMROOT".
# It seems Xcode have some issues.
OPTS=SYMROOT=`pwd`/build
DEMO=EonilFSEventsDemoGUI
cd $DEMO
xcodebuild -project $DEMO.xcodeproj -target $DEMO -configuration Debug $OPTS
xcodebuild -project $DEMO.xcodeproj -target $DEMO -configuration Release $OPTS
cd ..
# I can't figure out how to build without provisioning profile for Mac Catalyst.
# Therefore, test has been disabled. You can perform test manually by opening the project.
#cd BuildTest
#xcodebuild -project BuildTest.xcodeproj -target MacOSBuildTest -configuration Debug $OPTS
#xcodebuild -project BuildTest.xcodeproj -target MacOSBuildTest -configuration Release $OPTS
#xcodebuild -project BuildTest.xcodeproj -target MacCatalystBuildTest -configuration Debug $OPTS
#xcodebuild -project BuildTest.xcodeproj -target MacCatalystBuildTest -configuration Release $OPTS
#cd ..