From 320049b6c558d7001a6a0f4ac6013acdbe874b93 Mon Sep 17 00:00:00 2001 From: Jason Zhekov Date: Tue, 19 Jan 2016 14:07:39 +0200 Subject: [PATCH] Don't prepare Info.plist file from runtime template --- lib/services/ios-project-service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index 0cf33429dd..5c8dc2bbf3 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -129,7 +129,11 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ this.interpolateConfigurationFile(infoPlistFilePath).wait(); let projectRootFilePath = path.join(this.platformData.projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER); - this.replaceFileName("-Info.plist", projectRootFilePath).wait(); + // Starting with NativeScript for iOS 1.6.0, the project Info.plist file resides not in the platform project, + // but in the hello-world app template as a platform specific resource. + if(this.$fs.exists(path.join(projectRootFilePath, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER + "-Info.plist")).wait()) { + this.replaceFileName("-Info.plist", projectRootFilePath).wait(); + } this.replaceFileName("-Prefix.pch", projectRootFilePath).wait(); this.replaceFileName(IOSProjectService.XCODE_PROJECT_EXT_NAME, this.platformData.projectRoot).wait();