Skip to content

Commit 09d674f

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #329 from NativeScript/replace-cfbundle-identifier
Replace CFBunlderIndentifier placeholder with projectId
2 parents ef8cdcc + 952dd53 commit 09d674f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/services/ios-project-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,16 @@ class IOSProjectService implements IPlatformProjectService {
8989

9090
public interpolateData(projectRoot: string): IFuture<void> {
9191
return (() => {
92+
var infoPlistFilePath = path.join(projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER, util.format("%s-%s", IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER, "Info.plist"));
93+
shell.sed('-i', "__CFBundleIdentifier__", this.$projectData.projectId, infoPlistFilePath);
94+
9295
this.replaceFileName("-Info.plist", path.join(projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER)).wait();
9396
this.replaceFileName("-Prefix.pch", path.join(projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER)).wait();
9497
this.replaceFileName(IOSProjectService.XCODE_PROJECT_EXT_NAME, projectRoot).wait();
9598

9699
var pbxprojFilePath = path.join(projectRoot, this.$projectData.projectName + IOSProjectService.XCODE_PROJECT_EXT_NAME, "project.pbxproj");
97100
this.replaceFileContent(pbxprojFilePath).wait();
101+
98102
}).future<void>()();
99103
}
100104

0 commit comments

Comments
 (0)