mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Starting with Xcode 12 the arm64 architecture is supported as an iOS device as well as simulator architecture. But the fat macho file format does not distinguish by SDK, only by architecture. That makes lipo (rightfully) complain that it cannot add both architectures to a single file. To work around we make sure that both SDKs are built for a disjoint set of architectures. If an architecture is present for both SDKs we prefer the currently configured one. The log output has been extended to reflect that: ``` [iOS combined] Architectures (iphoneos): arm64 arm64e armv7 armv7s [iOS combined] Architectures (iphonesimulator): arm64 arm64e i386 x86_64 [iOS combined] Architectures (iphonesimulator) after pruning: i386 x86_64 ```
20 lines
693 B
ReStructuredText
20 lines
693 B
ReStructuredText
IOS_INSTALL_COMBINED
|
|
--------------------
|
|
|
|
.. versionadded:: 3.5
|
|
|
|
Build a combined (device and simulator) target when installing.
|
|
|
|
When this property is set to set to false (which is the default) then it will
|
|
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
|
|
also be built for the corresponding SDK and combined into one library.
|
|
|
|
.. note::
|
|
|
|
If a selected architecture is available for both: device SDK and simulator
|
|
SDK it will be built for the SDK selected by :variable:`CMAKE_OSX_SYSROOT`
|
|
and removed from the corresponding SDK.
|
|
|
|
This feature requires at least Xcode version 6.
|