Skip to content

Commit 3628490

Browse files
committed
fix: try multiple ways to get Info.plist from framework
1 parent 7c010fe commit 3628490

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

lib/services/ios-project-service.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,15 +1096,23 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
10961096
}
10971097

10981098
private validateFramework(libraryPath: string): void {
1099-
const infoPlistPath = path.join(
1099+
let infoPlistPath = path.join(
11001100
libraryPath,
11011101
constants.INFO_PLIST_FILE_NAME
11021102
);
11031103
if (!this.$fs.exists(infoPlistPath)) {
1104-
this.$errors.fail(
1105-
"The bundle at %s does not contain an Info.plist file.",
1106-
libraryPath
1104+
infoPlistPath = path.join(
1105+
libraryPath,
1106+
"Resources",
1107+
constants.INFO_PLIST_FILE_NAME
11071108
);
1109+
if (!this.$fs.exists(infoPlistPath)) {
1110+
this.$errors.fail(
1111+
"The bundle at %s does not contain an Info.plist file.",
1112+
libraryPath
1113+
);
1114+
}
1115+
11081116
}
11091117

11101118
const plistJson = this.$plistParser.parseFileSync(infoPlistPath);

0 commit comments

Comments
 (0)