Skip to content

Commit 4df5e79

Browse files
committed
Merge pull request #1404 from NativeScript/jasssonpet/move-info-plist
Don't prepare Info.plist file from runtime template
2 parents f890576 + 320049b commit 4df5e79

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
@@ -131,7 +131,11 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
131131
this.interpolateConfigurationFile(infoPlistFilePath).wait();
132132

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

0 commit comments

Comments
 (0)