Skip to content

Commit ac78b2a

Browse files
Fix dynamic library adding
Add missing wait for dynamic libraries.
1 parent a6f73d8 commit ac78b2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/ios-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
200200
return (() => {
201201
let extension = path.extname(libraryPath);
202202
if (extension === ".framework") {
203-
this.addDynamicFramework(libraryPath);
203+
this.addDynamicFramework(libraryPath).wait();
204204
} else {
205205
this.$errors.failWithoutHelp(`The bundle at ${libraryPath} does not appear to be a dynamic framework package.`);
206206
}
@@ -461,7 +461,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
461461

462462
expectedArchs.forEach(expectedArch => {
463463
if (archsInTheFatFile.indexOf(expectedArch) < 0) {
464-
this.$errors.failWithoutHelp(`The static library at ${libraryPath} is not built for one or more of the following required architectures:
464+
this.$errors.failWithoutHelp(`The static library at ${libraryPath} is not built for one or more of the following required architectures:
465465
${expectedArchs.join(", ")}. The static library must be built for all required architectures.`);
466466
}
467467
});

0 commit comments

Comments
 (0)