File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,14 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
95
95
this . $errors . fail ( "Xcode is not installed. Make sure you have Xcode installed and added to your PATH" ) ;
96
96
}
97
97
98
- let xcodeBuildVersion = this . $childProcess . exec ( "xcodebuild -version | head -n 1 | sed -e 's/Xcode //'" ) . wait ( ) ;
98
+ let xcodeBuildVersion = "" ;
99
+
100
+ try {
101
+ xcodeBuildVersion = this . $childProcess . exec ( "xcodebuild -version | head -n 1 | sed -e 's/Xcode //'" ) . wait ( ) ;
102
+ } catch ( error ) {
103
+ this . $errors . fail ( "xcodebuild execution failed. Make sure that you have latest Xcode and tools installed." ) ;
104
+ }
105
+
99
106
let splitedXcodeBuildVersion = xcodeBuildVersion . split ( "." ) ;
100
107
if ( splitedXcodeBuildVersion . length === 3 ) {
101
108
xcodeBuildVersion = util . format ( "%s.%s" , splitedXcodeBuildVersion [ 0 ] , splitedXcodeBuildVersion [ 1 ] ) ;
You can’t perform that action at this time.
0 commit comments