cmake/Help/prop_tgt/IOS_INSTALL_COMBINED.rst

29 lines
1.1 KiB
ReStructuredText
Raw Normal View History

2016-03-13 13:35:51 +01:00
IOS_INSTALL_COMBINED
--------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.5
2023-12-07 09:12:54 +01:00
.. deprecated:: 3.28
:prop_tgt:`IOS_INSTALL_COMBINED` was designed to make universal binaries
containing iOS/arm* device code paired with iOS Simulator/x86_64 code
(or similar for other Apple embedded platforms). Universal binaries can only
differentiate code based on CPU type, so this only made sense before the
days of arm64 macOS machines (i.e. iOS Simulator/arm64). Apple now
recommends xcframeworks, which contain multiple binaries for different
platforms, for this use case.
2021-09-14 00:13:48 +02:00
2016-03-13 13:35:51 +01:00
Build a combined (device and simulator) target when installing.
2023-12-07 09:12:54 +01:00
When this property is set to false, which is the default, then it will
2016-03-13 13:35:51 +01:00
either be built with the device SDK or the simulator SDK depending on the SDK
set. But if this property is set to true then the target will at install time
2023-12-07 09:12:54 +01:00
also be built for the other SDK and combined into one library.
2016-03-13 13:35:51 +01:00
2021-09-14 00:13:48 +02:00
.. note::
2023-12-07 09:12:54 +01:00
If a selected architecture is available for both device SDK and simulator
2021-09-14 00:13:48 +02:00
SDK it will be built for the SDK selected by :variable:`CMAKE_OSX_SYSROOT`
2023-12-07 09:12:54 +01:00
and removed from the other SDK.
2021-09-14 00:13:48 +02:00
2016-03-13 13:35:51 +01:00
This feature requires at least Xcode version 6.