Skip to content

Commit 80de65b

Browse files
committed
feat(ios): Extract iOS Runtime's xcframeworks from zip
NPM doesn't support symlinks and as a workaround we're embedding all XCFrameworks in a zip archive.
1 parent 07c64a5 commit 80de65b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/services/ios-project-service.ts

Lines changed: 7 additions & 0 deletions
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 {

0 commit comments

Comments
 (0)