ios-cmake
ios-cmake copied to clipboard
A CMake toolchain file for iOS/iPadOS, visionOS, macOS, watchOS & tvOS C/C++/Obj-C++ development
[As stated on CMake's documentation:](https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING.html) > This variable will be set to true by CMake if the [CMAKE_SYSTEM_NAME](https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html#variable:CMAKE_SYSTEM_NAME) variable has been set manually (i.e. in a toolchain file or as...
[This is an issue that has been opened for 4+ years on CMake](https://gitlab.kitware.com/cmake/cmake/-/issues/19713). Adding it to the toolchain is a workaround until CMake finally "fixes" it. In most cases, simply...
This PR adds `SIMULATOR64_VISIONOS` and modifies `VISIONOSCOMBINED` to also include x86_64 slice for visionOS simulator. It looks like Apple still requires us to build an x86_64 slice when working with...
Hello everyone! I am about to build a simple 2 file test c++ library and than use it as a Cocoa Pod. The library does some basic logging. I am...
My project contains separate code for different CPU architectures, such as x64/a.c for x64 and arm/a.c for arm64. How can I ensure that x64/a.c is compiled only for the x64...
**Describe the bug** When building for watchOS (`WATCHOS` or `WATCHOSCOMBINED`) and using the lib in Xcode, the Xcode build fails because architecture arm64 is not found. **To Reproduce** Steps to...
Just a question to get things clear: To me it looks like the xrsimulator sdk still provides support for x86_64. 1) Why is the SIMULATOR_VISIONOS platform not called SIMULATOR_VISIONOSARM64 like...
My apologies for this AI-generated PR. I am the maintainer of https://github.com/wcandillon/react-native-webgpu and we've always relied on ios-cmake for our CMake builds. It has been tremendously helpful. This AI-generated change...
**Describe the bug** Since Xcode 16.3 any build using this toolchain file for PLATFORM=MAC_UNIVERSAL fails during configuration with `clang: error: version 'arm64' in target triple 'arm64-apple-macosx11.0-arm64' is invalid`. Looking through...
Very minor fix to cleanup comments diverged from underlying settings.