File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed
Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change 2828 textDim=" "
2929fi
3030
31-
32- iOSDevice=" iPhone 7 Plus"
33- iOSVersion=" 11.0"
34-
31+ iOSDevice=" iPhone 6 Plus"
32+ iOSVersion=" 9.0"
33+
34+ xcodeVersion=` xcodebuild -version | head -n1 | cut -d' ' -f2 | cut -d' .' -f1`
35+ if [[ $xcodeVersion = ' 9' ]]
36+ then
37+ iOSDevice=" iPhone 8 Plus"
38+ iOSVersion=" 11.0"
39+ elif [[ $xcodeVersion = ' 8' ]]
40+ then
41+ iOSDevice=" iPhone 7 Plus"
42+ iOSVersion=" 10.0"
43+ fi
3544
3645function fileExtension() {
3746 echo ${1##* .}
@@ -84,15 +93,13 @@ buildDirectoryProjectScheme \
8493 TestBed-Swift.xcodeproj \
8594 TestBed-Swift
8695
87- cd Examples/WebViewExample
88- # printf "${textBlue}>>> Updating '%s'...${textNormal}\n" "$(basename `pwd`)"
89- # pod install
90- # pod update
91- cd ../..
92- buildDirectoryProjectScheme \
93- Examples/WebViewExample \
94- WebViewExample.xcworkspace \
95- WebViewExample
96+ if [[ $xcodeVersion = ' 9' ]]
97+ then
98+ buildDirectoryProjectScheme \
99+ Examples/WebViewExample \
100+ WebViewExample.xcworkspace \
101+ WebViewExample
102+ fi
96103
97104buildDirectoryProjectScheme \
98105 Branch-TestBed-Xcode-7 \
You can’t perform that action at this time.
0 commit comments