Skip to content

Commit

Permalink
Add fix for compiling with Xcode 8
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Sep 29, 2016
1 parent f109b05 commit fb77112
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extra/hooks/iosrtc-swift-support.js
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb77112

Please sign in to comment.