(WIP) A CMake toolchain file helping to build fat-binary for apple platforms.
You can customize the build using three variables:
XCODEBUILD_PLATFORM
: (Required) Select the target platform:iOS
,iOSSimulator
macOS
,tvOS
,tvOSSimulator
,watchOS
orwatchOSSimulator
XCODEBUILD_PLATFORM_VERSION
: (Optional) The version of the SDK to use. Otherwise cmake will try to detect the last oneBITCODE_ENABLED
: (Optional) Generate bitcode or not
cmake .. -DCMAKE_TOOLCHAIN_FILE=cmake/xcodebuild.cmake -DXCODEBUILD_PLATFORM=iOS