diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index a0daf8202f..c13aff6359 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -519,6 +519,11 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ if(opts && opts.executePodInstall && this.$fs.exists(pluginPodFilePath).wait()) { this.executePodInstall().wait(); } + + let project = this.createPbxProj(); + project.updateBuildProperty("IPHONEOS_DEPLOYMENT_TARGET", "8.0"); + this.$logger.info("The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks."); + this.savePbxProj(project).wait(); }).future()(); } diff --git a/test/ios-project-service.ts b/test/ios-project-service.ts index 3908366680..04743c645e 100644 --- a/test/ios-project-service.ts +++ b/test/ios-project-service.ts @@ -76,6 +76,12 @@ describe("Cocoapods support", () => { iOSProjectService.prepareStaticLibs = (pluginPlatformsFolderPath: string, pluginData: IPluginData): IFuture => { return Future.fromResult(); }; + iOSProjectService.createPbxProj = () => { + return { + updateBuildProperty: () => { return {}; } + }; + }; + iOSProjectService.savePbxProj = (): IFuture => Future.fromResult(); let pluginPath = temp.mkdirSync("pluginDirectory"); let pluginPlatformsFolderPath = path.join(pluginPath, "platforms", "ios"); @@ -137,6 +143,12 @@ describe("Cocoapods support", () => { iOSProjectService.removeStaticLibs = (pluginPlatformsFolderPath: string, pluginData: IPluginData): IFuture => { return Future.fromResult(); }; + iOSProjectService.createPbxProj = () => { + return { + updateBuildProperty: () => { return {}; } + }; + }; + iOSProjectService.savePbxProj = (): IFuture => Future.fromResult(); let pluginPath = temp.mkdirSync("pluginDirectory"); let pluginPlatformsFolderPath = path.join(pluginPath, "platforms", "ios");