This repository was archived by the owner on Mar 23, 2025. It is now read-only.
File tree 1 file changed +14
-8
lines changed
1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
show_help () {
8
8
cat << -EOS
9
- Usage: quick-install-dependencies [-h] [-f] <SDK>
9
+ Usage: quick-install-dependencies [-h] [-d] [- f] <SDK>
10
10
11
11
Options:
12
12
-h, --help Show this help and exit
13
+ -d, --debug Build with Debug configuration [default: release]
13
14
-f, --force Force build ignoring cache
14
15
15
16
Arguments:
16
17
SDK Specify SDK to build (macosx|iphoneos|iphonesimulator)
17
18
EOS
18
19
}
19
20
20
- if [ $# -eq 0 -o $# -gt 2 ]; then
21
- echo " error: wrong number of arguments ($# for 1..2 )." >&2
21
+ if [ $# -eq 0 -o $# -gt 3 ]; then
22
+ echo " error: wrong number of arguments ($# for 1..3 )." >&2
22
23
show_help >&2
23
24
exit 1
24
25
fi
26
+ configuration=Release
25
27
force=0
26
28
sdk=
27
29
carthage_build_dir=
33
35
show_help
34
36
exit
35
37
;;
38
+ -d|--debug)
39
+ configuration=Debug
40
+ shift
41
+ ;;
36
42
-f|--force)
37
43
force=1
38
44
shift
39
45
;;
40
46
macosx)
41
47
sdk=macosx
42
48
carthage_build_dir=Carthage/Build/Mac
43
- release_dir=Release
49
+ release_dir=" $configuration "
44
50
shift
45
51
;;
46
52
iphoneos)
47
53
sdk=iphoneos
48
54
carthage_build_dir=Carthage/Build/iOS
49
- release_dir=Release -iphoneos
55
+ release_dir=" $configuration -iphoneos"
50
56
shift
51
57
;;
52
58
iphonesimulator)
53
59
sdk=iphonesimulator
54
60
carthage_build_dir=Carthage/Build/iOS
55
- release_dir=Release -iphonesimulator
61
+ release_dir=" $configuration -iphonesimulator"
56
62
shift
57
63
;;
58
64
' ' )
65
71
esac
66
72
done
67
73
if [ -z " $sdk " ]; then
68
- echo " error: wrong number of arguments ($# for 1..2 )." >&2
74
+ echo " error: wrong number of arguments ($# for 1..3 )." >&2
69
75
show_help >&2
70
76
exit 1
71
77
fi
89
95
xcodebuild build \
90
96
-project Carthage/Checkouts/apollo-ios/Apollo.xcodeproj \
91
97
-scheme " $scheme " \
92
- -configuration Release \
98
+ -configuration " $configuration " \
93
99
-derivedDataPath " $derived_data_dir " \
94
100
-sdk " $sdk " \
95
101
-quiet \
You can’t perform that action at this time.
0 commit comments