Skip to content

Commit

Permalink
Bump Apple platform minimum versions
Browse files Browse the repository at this point in the history
Includes both minimum deployment targets and minimum sdk
versions.

As per supported Apple platforms versions which was done
in qt/qtdoc at
8807fdedce29cbbd7662fcd745234da30eace3fb

For Qt for iOS 6.0.x we only bump the minimum
deloyment target because applications seem to crash with iOS 12.4+,
and it's better to have a build error than a runtime error.

The minimum required sdk will not be bumped for 6.0.x, so we don't
accidentally break someone's existing build, given that 6.0 is already
released.

Task-number: QTCREATORBUG-23574
Change-Id: I3046384164f2d7fdbd0cfd16dcb85e0d60bc56ce
Reviewed-by: Tor Arne Vestbø <[email protected]>
(cherry picked from commit 4b2035c)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
  • Loading branch information
alcroito authored and Qt Cherry-pick Bot committed Mar 12, 2021
1 parent e2a1117 commit 0680c87
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cmake/QtAutoDetect.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ function(qt_auto_detect_darwin)
# macOS
set(version "10.14")
elseif(CMAKE_SYSTEM_NAME STREQUAL iOS)
set(version "12.0")
set(version "13.0")
elseif(CMAKE_SYSTEM_NAME STREQUAL watchOS)
set(version "5.0")
set(version "6.0")
elseif(CMAKE_SYSTEM_NAME STREQUAL tvOS)
set(version "12.0")
set(version "13.0")
endif()
if(version)
set(CMAKE_OSX_DEPLOYMENT_TARGET "${version}" CACHE STRING "${description}")
Expand Down
4 changes: 1 addition & 3 deletions mkspecs/common/macx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ QMAKE_MAC_SDK = macosx

QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14

# Should be 10.15, but as long as the CI builds with
# older SDKs we have to keep this.
QT_MAC_SDK_VERSION_MIN = 10.14
QT_MAC_SDK_VERSION_MIN = 10.15

QT_MAC_SDK_VERSION_MAX = 11.0

Expand Down
2 changes: 1 addition & 1 deletion mkspecs/macx-ios-clang/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# qmake configuration for macx-ios-clang
#

QMAKE_IOS_DEPLOYMENT_TARGET = 12.0
QMAKE_IOS_DEPLOYMENT_TARGET = 13.0

# Universal target (iPhone and iPad)
QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/macx-tvos-clang/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# qmake configuration for macx-tvos-clang
#

QMAKE_TVOS_DEPLOYMENT_TARGET = 12.0
QMAKE_TVOS_DEPLOYMENT_TARGET = 13.0

QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 3

Expand Down
2 changes: 1 addition & 1 deletion mkspecs/macx-watchos-clang/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# qmake configuration for macx-watchos-clang
#

QMAKE_WATCHOS_DEPLOYMENT_TARGET = 5.0
QMAKE_WATCHOS_DEPLOYMENT_TARGET = 6.0

QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 4

Expand Down

0 comments on commit 0680c87

Please sign in to comment.