Skip to content

Commit d9da540

Browse files
Set the minimum macOS deployment target to 10.13 for the test target
The lit test suite respects `MACOSX_DEPLOYMENT_TARGET` to determine the `-target` option passed to compilers. However, the `SwiftXCTestFunctionalTests` target and the `XCTest` project do not set `MACOSX_DEPLOYMENT_TARGET` in their build settings, so the default value (14.2 in the current Xcode installed on the CI) is used and the macOS version of the CI machine is older than it. This patch fixes the issue by setting `MACOSX_DEPLOYMENT_TARGET` to 10.13, which is currently used as the minimum macOS version requirement in ci.swift.org.
1 parent ea5c74d commit d9da540

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

XCTest.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@
561561
DEBUG_INFORMATION_FORMAT = dwarf;
562562
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
563563
GCC_OPTIMIZATION_LEVEL = 0;
564+
MACOSX_DEPLOYMENT_TARGET = 10.13;
564565
OTHER_CFLAGS = "";
565566
"OTHER_LDFLAGS[sdk=macosx*]" = (
566567
"-framework",
@@ -575,6 +576,7 @@
575576
isa = XCBuildConfiguration;
576577
buildSettings = {
577578
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
579+
MACOSX_DEPLOYMENT_TARGET = 10.13;
578580
OTHER_CFLAGS = "";
579581
"OTHER_LDFLAGS[sdk=macosx*]" = (
580582
"-framework",

0 commit comments

Comments
 (0)