Skip to content

Commit 962b93a

Browse files
author
Alexander Widerberg
committed
Fixes #140. Seems Apple has bumped the minimum required target to 13.1 in newer versions of Xcode for Mac Catalyst.
1 parent 14092d3 commit 962b93a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios.toolchain.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ if(NOT DEFINED DEPLOYMENT_TARGET)
245245
set(DEPLOYMENT_TARGET "11.0")
246246
elseif(PLATFORM STREQUAL "MAC_CATALYST" OR PLATFORM STREQUAL "MAC_CATALYST_ARM64")
247247
# Unless specified, SDK version 13.0 is used by default as minimum target version (mac catalyst minimum requirement).
248-
set(DEPLOYMENT_TARGET "13.0")
248+
set(DEPLOYMENT_TARGET "13.1")
249249
else()
250250
# Unless specified, SDK version 11.0 is used by default as minimum target version (iOS, tvOS).
251251
set(DEPLOYMENT_TARGET "11.0")
252252
endif()
253253
message(STATUS "[DEFAULTS] Using the default min-version since DEPLOYMENT_TARGET not provided!")
254-
elseif(DEFINED DEPLOYMENT_TARGET AND PLATFORM MATCHES "^MAC_CATALYST" AND ${DEPLOYMENT_TARGET} VERSION_LESS "13.0")
255-
message(FATAL_ERROR "Mac Catalyst builds requires a minimum deployment target of 13.0!")
254+
elseif(DEFINED DEPLOYMENT_TARGET AND PLATFORM MATCHES "^MAC_CATALYST" AND ${DEPLOYMENT_TARGET} VERSION_LESS "13.1")
255+
message(FATAL_ERROR "Mac Catalyst builds requires a minimum deployment target of 13.1!")
256256
endif()
257257

258258
# Store the DEPLOYMENT_TARGET in the cache

0 commit comments

Comments
 (0)