aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-12-03 12:53:22 +0100
committerAndrej Mihajlov <and@mullvad.net>2020-12-04 09:39:09 +0100
commit9e909a3294dc8f7764f90cf28481bab5abc5459c (patch)
treefa969972f0ae788813ab4a0b9745929958248d85
parentWireGuardApp: Update swift version from 4.2 to 5.0 (diff)
downloadwireguard-apple-9e909a3294dc8f7764f90cf28481bab5abc5459c.tar.xz
wireguard-apple-9e909a3294dc8f7764f90cf28481bab5abc5459c.zip
WireGuardApp: Disable SWIFT_PRECOMPILE_BRIDGING_HEADER
Clang automatically picks up module.modulemap files from WireGuardKit directories when precompiling bridging header file, which causes the compiler to fail with obscure error. Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r--WireGuard.xcodeproj/project.pbxproj2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard.xcodeproj/project.pbxproj b/WireGuard.xcodeproj/project.pbxproj
index 02ba3d9..6df4021 100644
--- a/WireGuard.xcodeproj/project.pbxproj
+++ b/WireGuard.xcodeproj/project.pbxproj
@@ -1794,6 +1794,7 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OBJC_BRIDGING_HEADER = "Sources/WireGuardApp/WireGuard-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_PRECOMPILE_BRIDGING_HEADER = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
@@ -1856,6 +1857,7 @@
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OBJC_BRIDGING_HEADER = "Sources/WireGuardApp/WireGuard-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-O";
+ SWIFT_PRECOMPILE_BRIDGING_HEADER = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;