Skip to content

Commit 585447c

Browse files
committed
fix(ios): isDynamicFramework check for .xcframeworks
Pass full path instead of only file name to `getFsStats`
1 parent 5069f29 commit 585447c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
238238

239239
if (path.extname(frameworkPath) === ".xcframework") {
240240
let isDynamic = true;
241-
const subDirs = this.$fs.readDirectory(frameworkPath).filter(entry => this.$fs.getFsStats(entry).isDirectory());
241+
const subDirs = this.$fs.readDirectory(frameworkPath).filter(entry => this.$fs.getFsStats(path.join(frameworkPath, entry)).isDirectory());
242242
for (const subDir of subDirs) {
243243
const singlePlatformFramework = path.join(subDir, frameworkName + ".framework");
244244
if (this.$fs.exists(singlePlatformFramework)) {

0 commit comments

Comments
 (0)