Skip to content

Commit b9332eb

Browse files
committed
Fix deployment target change on CocoaPods preparation step.
1 parent cdcc29b commit b9332eb

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
@@ -519,16 +519,16 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
519519
let pluginPodFileContent = this.$fs.readText(pluginPodFilePath).wait();
520520
let contentToWrite = this.buildPodfileContent(pluginPodFilePath, pluginPodFileContent);
521521
this.$fs.appendFile(this.projectPodFilePath, contentToWrite).wait();
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 in CocoaPods.");
526+
this.savePbxProj(project).wait();
522527
}
523528

524529
if(opts && opts.executePodInstall && this.$fs.exists(pluginPodFilePath).wait()) {
525530
this.executePodInstall().wait();
526531
}
527-
528-
let project = this.createPbxProj();
529-
project.updateBuildProperty("IPHONEOS_DEPLOYMENT_TARGET", "8.0");
530-
this.$logger.info("The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks.");
531-
this.savePbxProj(project).wait();
532532
}).future<void>()();
533533
}
534534

0 commit comments

Comments
 (0)