From d3df3ed5ec37cb751043bd9de829d7e3cbdfc0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 6 Feb 2021 19:39:39 +0100 Subject: [PATCH] Makefile: support for Xcode 12.4 and Big Sur Bump min iOS and tvOS versions to 11.4 because Big Sur does not support older simulators: $ xcrun simctl list runtimes iOS 10.3 (10.3.1 - 14E8301) - com.apple.CoreSimulator.SimRuntime.iOS-10-3 (unavailable, The iOS 10.3 simulator runtime is not supported on hosts after macOS 10.15.99.) tvOS 10.2 (10.2 - 14W260) - com.apple.CoreSimulator.SimRuntime.tvOS-10-2 (unavailable, The tvOS 10.2 simulator runtime is not supported on hosts after macOS 10.15.99.) --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c6974b4ad..484741ebe 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,14 @@ TEST_ACTIONS = clean build build-for-testing test-without-building # When adding support for an Xcode version, look for available devices with # `xcrun xctrace list devices` (or the deprecated `instruments -s devices`). -ifeq ($(XCODEVERSION),12.3) +ifeq ($(XCODEVERSION),12.4) + MAX_SWIFT_VERSION = 5.3 + MIN_SWIFT_VERSION = 5.2 + MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 12,OS=14.4" + MIN_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 5s,OS=11.4" + MAX_TVOS_DESTINATION = "platform=tvOS Simulator,name=Apple TV 4K,OS=14.3" + MIN_TVOS_DESTINATION = "platform=tvOS Simulator,name=Apple TV,OS=11.4" +else ifeq ($(XCODEVERSION),12.3) MAX_SWIFT_VERSION = 5.3 MIN_SWIFT_VERSION = 5.2 MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 12,OS=14.3"