Skip to content

Commit ee7d2b3

Browse files
document passing deployment target automatically (#4129)
1 parent b9bc957 commit ee7d2b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

reference/tools/apple/xcodebuild.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The ``Xcode.build()`` method internally implements a call to ``xcodebuild`` like
3737

3838
.. code:: bash
3939
40-
$ xcodebuild -project app.xcodeproj -configuration <configuration> -arch <architecture> <sdk> <verbosity> -target <target>/-alltargets
40+
$ xcodebuild -project app.xcodeproj -configuration <configuration> -arch <architecture> <sdk> <verbosity> -target <target>/-alltargets *_DEPLOYMENT_TARGET=settings.os.version
4141
4242
Where:
4343

@@ -55,6 +55,11 @@ Where:
5555
- ``verbosity`` is the verbosity level for the build and can take value 'verbose' or
5656
'quiet' if set by ``tools.build:verbosity`` in your **[conf]**
5757

58+
Additional parameters that are passed to ``xcodebuild``:
59+
60+
- deployment target setting according to the values of ``os`` and ``os.version`` from profile,
61+
e.g. ``MACOSX_DEPLOYMENT_TARGET=10.15`` or ``IPHONEOS_DEPLOYMENT_TARGET=15.0``
62+
5863
conf
5964
++++
6065

0 commit comments

Comments
 (0)