Skip to content

Commit 8fa54af

Browse files
author
Dimitar Tachev
authored
Merge pull request #5172 from NativeScript/feat/uikit-for-mac
feat: Support iOS Runtime for Catalyst
2 parents fb16093 + aeb426d commit 8fa54af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/services/ios-project-service.ts

+8
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
178178

179179
const pbxprojFilePath = this.getPbxProjPath(projectData);
180180
this.replaceFileContent(pbxprojFilePath, projectData);
181+
182+
const internalDirPath = path.join(projectRootFilePath, "..", "internal");
183+
const xcframeworksFilePath = path.join(internalDirPath, "XCFrameworks.zip");
184+
if (this.$fs.exists(xcframeworksFilePath)) {
185+
await this.$fs.unzip(xcframeworksFilePath, internalDirPath);
186+
this.$fs.deleteFile(xcframeworksFilePath);
187+
}
181188
}
182189

183190
public interpolateConfigurationFile(projectData: IProjectData): void {
@@ -264,6 +271,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
264271
const frameworkAddOptions: IXcode.Options = { customFramework: true };
265272
if (await this.isDynamicFramework(frameworkPath)) {
266273
frameworkAddOptions["embed"] = true;
274+
frameworkAddOptions["sign"] = true;
267275
}
268276

269277
const frameworkRelativePath = '$(SRCROOT)/' + this.getLibSubpathRelativeToProjectPath(frameworkPath, projectData);

0 commit comments

Comments
 (0)