From fb7711276229164e01c14579f0a7e01f93d3a943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 29 Sep 2016 16:43:16 +0100 Subject: [PATCH] Add fix for compiling with Xcode 8 --- extra/hooks/iosrtc-swift-support.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extra/hooks/iosrtc-swift-support.js b/extra/hooks/iosrtc-swift-support.js index 90828835..b392aae5 100755 --- a/extra/hooks/iosrtc-swift-support.js +++ b/extra/hooks/iosrtc-swift-support.js @@ -12,6 +12,8 @@ var BUILD_VERSION = '9.0', BUILD_VERSION_XCODE = '"' + BUILD_VERSION + '"', + SWIFT_VERSION = '2.3', + SWIFT_VERSION_XCODE = '"' + SWIFT_VERSION + '"', RUNPATH_SEARCH_PATHS = '@executable_path/Frameworks', RUNPATH_SEARCH_PATHS_XCODE = '"' + RUNPATH_SEARCH_PATHS + '"', ENABLE_BITCODE = 'NO', @@ -85,6 +87,7 @@ module.exports = function (context) { debug('- "Runpath Search Paths" to: ' + RUNPATH_SEARCH_PATHS_XCODE); debug('- "Objective-C Bridging Header" to: ' + swiftBridgingHeadXcode); debug('- "ENABLE_BITCODE" set to: ' + ENABLE_BITCODE_XCODE); + debug('- "SWIFT_VERSION" set to: ' + SWIFT_VERSION_XCODE); // Massaging the files @@ -119,6 +122,7 @@ module.exports = function (context) { buildSettings.SWIFT_OBJC_BRIDGING_HEADER = swiftBridgingHeadXcode; buildSettings.IPHONEOS_DEPLOYMENT_TARGET = BUILD_VERSION_XCODE; buildSettings.ENABLE_BITCODE = ENABLE_BITCODE_XCODE; + buildSettings.SWIFT_VERSION = SWIFT_VERSION_XCODE; }); // Writing the file again