Skip to content

Commit 6d78b1f

Browse files
committed
Initialize project Podfile
Make sure the Podfile contains the "use_frameworks" directive by default.
1 parent 10b2216 commit 6d78b1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/services/ios-project-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
426426

427427
private prepareCocoapods(pluginPlatformsFolderPath: string): IFuture<void> {
428428
return (() => {
429+
if(!this.$fs.exists(this.projectPodFilePath).wait()) {
430+
this.$fs.writeFile(this.projectPodFilePath, "use_frameworks!\n").wait();
431+
}
429432
let pluginPodFilePath = path.join(pluginPlatformsFolderPath, "Podfile");
430433
if(this.$fs.exists(pluginPodFilePath).wait()) {
431434
let pluginPodFileContent = this.$fs.readText(pluginPodFilePath).wait();

0 commit comments

Comments
 (0)