From 603b2e3ffea20b4475b749bda2eab5567ea25db9 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 7 May 2020 18:04:26 +0200 Subject: [PATCH] feat(cordova): Add WK_WEB_VIEW_ONLY=1 preprocessor macro (#2880) --- cli/src/ios/update.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/ios/update.ts b/cli/src/ios/update.ts index eb33e441f..f4694f383 100644 --- a/cli/src/ios/update.ts +++ b/cli/src/ios/update.ts @@ -245,6 +245,7 @@ async function generateCordovaPodspec(cordovaPlugins: Plugin[], config: Config, s.source = { :git => 'https://github.com/ionic-team/does-not-exist.git', :tag => '${config.cli.package.version}' } s.source_files = '${sourcesFolderName}/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '${config.ios.minVersion}' + s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1 WK_WEB_VIEW_ONLY=1' } s.dependency 'CapacitorCordova'${getLinkerFlags(config)} s.swift_version = '${config.ios.cordovaSwiftVersion}' ${frameworksString}