Skip to content

Commit a4c78a4

Browse files
committed
Fix deployment target altering in CocoaPods setup.
1 parent 138a834 commit a4c78a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/services/ios-project-service.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,16 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
514514
let pluginPodFileContent = this.$fs.readText(pluginPodFilePath).wait();
515515
let contentToWrite = this.buildPodfileContent(pluginPodFilePath, pluginPodFileContent);
516516
this.$fs.appendFile(this.projectPodFilePath, contentToWrite).wait();
517+
518+
let project = this.createPbxProj();
519+
project.updateBuildProperty("IPHONEOS_DEPLOYMENT_TARGET", "8.0");
520+
this.$logger.info("The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks.");
521+
this.savePbxProj(project).wait();
517522
}
518523

519524
if(opts && opts.executePodInstall && this.$fs.exists(pluginPodFilePath).wait()) {
520525
this.executePodInstall().wait();
521526
}
522-
523-
let project = this.createPbxProj();
524-
project.updateBuildProperty("IPHONEOS_DEPLOYMENT_TARGET", "8.0");
525-
this.$logger.info("The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks.");
526-
this.savePbxProj(project).wait();
527527
}).future<void>()();
528528
}
529529

0 commit comments

Comments
 (0)