Skip to content

Commit 320049b

Browse files
committed
Don't prepare Info.plist file from runtime template
1 parent 98a96fb commit 320049b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/services/ios-project-service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
129129
this.interpolateConfigurationFile(infoPlistFilePath).wait();
130130

131131
let projectRootFilePath = path.join(this.platformData.projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER);
132-
this.replaceFileName("-Info.plist", projectRootFilePath).wait();
132+
// Starting with NativeScript for iOS 1.6.0, the project Info.plist file resides not in the platform project,
133+
// but in the hello-world app template as a platform specific resource.
134+
if(this.$fs.exists(path.join(projectRootFilePath, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER + "-Info.plist")).wait()) {
135+
this.replaceFileName("-Info.plist", projectRootFilePath).wait();
136+
}
133137
this.replaceFileName("-Prefix.pch", projectRootFilePath).wait();
134138
this.replaceFileName(IOSProjectService.XCODE_PROJECT_EXT_NAME, this.platformData.projectRoot).wait();
135139

0 commit comments

Comments
 (0)