From ac78b2a10acc72567c2c8c61962cebffb54e425b Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Wed, 23 Sep 2015 15:06:55 +0300 Subject: [PATCH] Fix dynamic library adding Add missing wait for dynamic libraries. --- lib/services/ios-project-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index fb93d0118e..a0daf8202f 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -200,7 +200,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ return (() => { let extension = path.extname(libraryPath); if (extension === ".framework") { - this.addDynamicFramework(libraryPath); + this.addDynamicFramework(libraryPath).wait(); } else { this.$errors.failWithoutHelp(`The bundle at ${libraryPath} does not appear to be a dynamic framework package.`); } @@ -461,7 +461,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ expectedArchs.forEach(expectedArch => { if (archsInTheFatFile.indexOf(expectedArch) < 0) { - this.$errors.failWithoutHelp(`The static library at ${libraryPath} is not built for one or more of the following required architectures: + this.$errors.failWithoutHelp(`The static library at ${libraryPath} is not built for one or more of the following required architectures: ${expectedArchs.join(", ")}. The static library must be built for all required architectures.`); } });