From: Andrej Mihajlov Date: Thu, 3 Dec 2020 11:53:22 +0000 (+0100) Subject: WireGuardApp: Disable SWIFT_PRECOMPILE_BRIDGING_HEADER X-Git-Tag: 1.0.10-18~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e909a3294dc8f7764f90cf28481bab5abc5459c;p=thirdparty%2Fwireguard-apple.git 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 --- 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;