]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
WireGuardApp: Disable SWIFT_PRECOMPILE_BRIDGING_HEADER
authorAndrej Mihajlov <and@mullvad.net>
Thu, 3 Dec 2020 11:53:22 +0000 (12:53 +0100)
committerAndrej Mihajlov <and@mullvad.net>
Fri, 4 Dec 2020 08:39:09 +0000 (09:39 +0100)
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>
WireGuard.xcodeproj/project.pbxproj

index 02ba3d93adad4026532ed6398f547e018d216514..6df4021106fd26db112cc18f3d2545b79b1af685 100644 (file)
                                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";
                        };
                                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;