Skip to content

Commit 758e50c

Browse files
[3.12] pythongh-120831: Increase the default minimum supported iOS version to 13.0 (python#121250)
Increases the default minimum iOS version to 13.0. Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent ae206ef commit 758e50c

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

Doc/using/ios.rst

+11
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ running, so you only need to deal with the Python code itself.
3333
Python at runtime on iOS
3434
========================
3535

36+
iOS version compatibility
37+
-------------------------
38+
39+
The minimum supported iOS version is specified at compile time, using the
40+
:option:`--host` option to ``configure``. By default, when compiled for iOS,
41+
Python will be compiled with a minimum supported iOS version of 13.0. To use a
42+
different miniumum iOS version, provide the version number as part of the
43+
:option:`!--host` argument - for example,
44+
``--host=arm64-apple-ios15.4-simulator`` would compile an ARM64 simulator build
45+
with a deployment target of 15.4.
46+
3647
Platform identification
3748
-----------------------
3849

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The default minimum iOS version was increased to 13.0.

configure

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+4-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ AC_MSG_RESULT(["$MACHDEP"])
381381
# On cross-compile builds, configure will look for a host-specific compiler by
382382
# prepending the user-provided host triple to the required binary name.
383383
#
384-
# On iOS, this results in binaries like "arm64-apple-ios12.0-simulator-gcc",
384+
# On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc",
385385
# which isn't a binary that exists, and isn't very convenient, as it contains the
386386
# iOS version. As the default cross-compiler name won't exist, configure falls
387387
# back to gcc, which *definitely* won't work. We're providing wrapper scripts for
@@ -715,8 +715,10 @@ if test "$cross_compiling" = yes; then
715715
_host_device=${_host_device:=os}
716716

717717
# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
718+
AC_MSG_CHECKING([iOS deployment target])
718719
IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
719-
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
720+
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
721+
AC_MSG_RESULT([$IPHONEOS_DEPLOYMENT_TARGET])
720722

721723
case "$host_cpu" in
722724
aarch64)

iOS/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ especially important, as many parts of the standard library (including the
188188
``ctypes`` module at runtime.
189189

190190
By default, Python will be compiled with an iOS deployment target (i.e., the
191-
minimum supported iOS version) of 12.0. To specify a different deployment
191+
minimum supported iOS version) of 13.0. To specify a different deployment
192192
target, provide the version number as part of the ``--host`` argument - for
193193
example, ``--host=arm64-apple-ios15.4-simulator`` would compile an ARM64
194194
simulator build with a deployment target of 15.4.

0 commit comments

Comments
 (0)