# leetal/ios-cmake

A CMake toolchain file for iOS/iPadOS, visionOS, macOS, watchOS & tvOS C/C++/Obj-C++ development

Repository: https://github.com/leetal/ios-cmake
Canonical: https://ross.abutalabs.com/products/ios-cmake
Language: CMake
License: BSD-3-Clause
License Family: permissive
Topics: ios, cmake, cmake-scripts, tvos-development, tvos, ios-development, ios-cmake, tvos-cmake, c, objective-c, cpp, tvos-simulator, watchos, cmake-toolchain, watchos-development, watchos-cmake, macosx, macos, catalyst, visionos
Last push: 2026-08-06T12:05:59+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 64, longevity 100
- inputs: {"age_days": 3498, "days_push": 27, "days_rel": 27, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2180, forks 464 (observed 2026-08-28T04:06:23.236657+00:00)

## What it is
A CMake toolchain file enabling cross-compilation of C, C++, Objective-C/C++ and Swift projects to Apple platforms including iOS, iPadOS, tvOS, watchOS, visionOS, macOS and Mac Catalyst. It provides configurable options for platform targets, deployment targets, architectures, ARC and simulator support.

## Use cases
- build a C++ library for iOS devices with CMake
- cross-compile a CMake project to watchOS or tvOS
- build for iOS simulator and device separately to create an xcframework
- target visionOS or Mac Catalyst from a CMake codebase
- set deployment target and architectures for Apple platform builds

## When to choose
- you have an existing CMake-based C/C++/Objective-C/Swift project and need to build it for Apple mobile or desktop platforms
- you need simulator and device builds with configurable options
- you want to produce slices for combining into an xcframework

## When to avoid
- your project uses Swift Package Manager, Xcode projects, or Bazel instead of CMake
- you target non-Apple platforms
- you need a full app packaging/signing pipeline rather than compilation toolchain support

## Facets
- artifact type: library
- maturity: active
- function: build-tool, developer-tools
- domain: cross-platform, mobile-development, developer-tools, apple-ecosystem
- platform: cli
- tags: cmake-toolchain, ios, tvos, watchos, visionos, macos, catalyst, cross-compilation, objective-c, swift

## Member repositories
- leetal/ios-cmake (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.236657+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:48:43.673423+00:00, confidence not recorded.
  - readme: https://github.com/leetal/ios-cmake (fetched 2026-08-28T04:06:23.236657+00:00, sha 27bb8763480c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
