From 585447cf15be3f06975f6d7444813897702a62b2 Mon Sep 17 00:00:00 2001 From: Martin Bektchiev Date: Wed, 14 Aug 2019 17:09:59 +0300 Subject: [PATCH] fix(ios): isDynamicFramework check for `.xcframework`s Pass full path instead of only file name to `getFsStats` --- lib/services/ios-project-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index c308810f32..fd8e888719 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -238,7 +238,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ if (path.extname(frameworkPath) === ".xcframework") { let isDynamic = true; - const subDirs = this.$fs.readDirectory(frameworkPath).filter(entry => this.$fs.getFsStats(entry).isDirectory()); + const subDirs = this.$fs.readDirectory(frameworkPath).filter(entry => this.$fs.getFsStats(path.join(frameworkPath, entry)).isDirectory()); for (const subDir of subDirs) { const singlePlatformFramework = path.join(subDir, frameworkName + ".framework"); if (this.$fs.exists(singlePlatformFramework)) {