@@ -28,7 +28,6 @@ const getPlatformSdkName = (forDevice: boolean): string => forDevice ? DevicePla
28
28
const getConfigurationName = ( release : boolean ) : string => release ? Configurations . Release : Configurations . Debug ;
29
29
30
30
export class IOSProjectService extends projectServiceBaseLib . PlatformProjectServiceBase implements IPlatformProjectService {
31
- private static XCODEBUILD_MIN_VERSION = "6.0" ;
32
31
private static IOS_PROJECT_NAME_PLACEHOLDER = "__PROJECT_NAME__" ;
33
32
private static IOS_PLATFORM_NAME = "ios" ;
34
33
@@ -145,11 +144,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
145
144
notConfiguredEnvOptions
146
145
} ) ;
147
146
148
- const xcodeBuildVersion = await this . getXcodeVersion ( ) ;
149
- if ( helpers . versionCompare ( xcodeBuildVersion , IOSProjectService . XCODEBUILD_MIN_VERSION ) < 0 ) {
150
- this . $errors . fail ( "NativeScript can only run in Xcode version %s or greater" , IOSProjectService . XCODEBUILD_MIN_VERSION ) ;
151
- }
152
-
153
147
return {
154
148
checkEnvironmentRequirementsOutput
155
149
} ;
@@ -354,13 +348,6 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
354
348
basicArgs . push ( "-xcconfig" , path . join ( projectRoot , projectData . projectName , BUILD_XCCONFIG_FILE_NAME ) ) ;
355
349
}
356
350
357
- // if (this.$logger.getLevel() === "INFO") {
358
- // let xcodeBuildVersion = this.getXcodeVersion();
359
- // if (helpers.versionCompare(xcodeBuildVersion, "8.0") >= 0) {
360
- // basicArgs.push("-quiet");
361
- // }
362
- // }
363
-
364
351
const handler = ( data : any ) => {
365
352
this . emit ( constants . BUILD_OUTPUT_EVENT_NAME , data ) ;
366
353
} ;
@@ -1238,7 +1225,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1238
1225
let xcodeBuildVersion = "" ;
1239
1226
1240
1227
try {
1241
- xcodeBuildVersion = await this . $childProcess . exec ( "xcodebuild -version | head -n 1 | sed -e 's/Xcode //'" ) ;
1228
+ xcodeBuildVersion = await this . $sysInfo . getXcodeVersion ( ) ;
1242
1229
} catch ( error ) {
1243
1230
this . $errors . fail ( "xcodebuild execution failed. Make sure that you have latest Xcode and tools installed." ) ;
1244
1231
}
0 commit comments