File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 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
9595 this . $errors . fail ( "Xcode is not installed. Make sure you have Xcode installed and added to your PATH" ) ;
9696 }
9797
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+
99106 let splitedXcodeBuildVersion = xcodeBuildVersion . split ( "." ) ;
100107 if ( splitedXcodeBuildVersion . length === 3 ) {
101108 xcodeBuildVersion = util . format ( "%s.%s" , splitedXcodeBuildVersion [ 0 ] , splitedXcodeBuildVersion [ 1 ] ) ;
You can’t perform that action at this time.
0 commit comments