# tpoechtrager/osxcross

MacOS Cross-Toolchain for Linux and *BSD

Repository: https://github.com/tpoechtrager/osxcross
Canonical: https://ross.abutalabs.com/products/osxcross
Language: C++
License: GPL-2.0
License Family: copyleft
Last push: 2026-07-24T08:31:34+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 4679, "days_push": 40, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3386, forks 368 (observed 2026-08-28T04:07:58.743538+00:00)

## What it is
OSXCross is a macOS cross-compilation toolchain that lets you build macOS binaries from Linux and *BSD hosts. It combines a host compiler, a packaged macOS SDK, Darwin-compatible binary utilities (cctools/ld64 or LLVM/lld), and compiler wrappers into target-prefixed commands.

## Use cases
- cross-compile macos binaries from linux
- build macos app on bsd without a mac
- set up clang cross toolchain targeting arm64 and x86_64 macos
- create universal binaries for macos from a linux ci server
- compile c++ code for macos using cmake on linux

## When to choose
- you need to build macOS binaries but only have Linux or BSD machines
- you want CI pipelines on Linux to produce macOS executables
- you need a scriptable, CMake-friendly cross toolchain with SDK sysroot handling

## When to avoid
- you need to run or test macOS apps, not just compile them
- you require i386 or x86_64h targets with the LLVM flavor
- you cannot legally obtain a macOS SDK, since the toolchain requires one

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, build-tool, developer-tools
- domain: developer-tools, cross-platform, compilers
- platform: cli, cpp
- tags: cross-compilation, toolchain, macos-sdk, clang, gcc, cmake, darwin, linker, linux, macos

## Member repositories
- tpoechtrager/osxcross (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:58.743538+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-29T18:39:10.432855+00:00, confidence not recorded.
  - readme: https://github.com/tpoechtrager/osxcross (fetched 2026-08-28T04:07:58.743538+00:00, sha eb873ad5efbd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
