From 6d78b1f74c0d9bba725a5f491b70d493f08d4fbf Mon Sep 17 00:00:00 2001 From: Yavor Georgiev Date: Wed, 2 Sep 2015 18:53:12 +0300 Subject: [PATCH] Initialize project Podfile Make sure the Podfile contains the "use_frameworks" directive by default. --- lib/services/ios-project-service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index 63cd8ae01e..dc66e03cfc 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -426,6 +426,9 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ private prepareCocoapods(pluginPlatformsFolderPath: string): IFuture { return (() => { + if(!this.$fs.exists(this.projectPodFilePath).wait()) { + this.$fs.writeFile(this.projectPodFilePath, "use_frameworks!\n").wait(); + } let pluginPodFilePath = path.join(pluginPlatformsFolderPath, "Podfile"); if(this.$fs.exists(pluginPodFilePath).wait()) { let pluginPodFileContent = this.$fs.readText(pluginPodFilePath).wait();