Skip to main content

iOSBuild

macOS Python PyPI GitHub uv Pytest GitHub Actions CI Build Issues Read the Docs Documentation Status CodeCov Coverage License: MIT Buy Me A Coffee No AI

Welcome to iOSBuild, a Python application for building CMake libraries for Apple systems. The aim of the project is to use a CMakeLists.txt file to generate an XCFramework containing static libraries for use across iOS and other Apple operating systems.

This project makes use of the ios-cmake toolchain to configure and build the libraries using CMake. The libraries are built for each of the specified platforms and combined into a single xcframework for each library. These may then be included in iOS, watchOS, visionOS, tvOS, and macOS applications using Xcode.

Pre-requisites

In order to run the code there are a number of non-Python projects which must be installed:

  • CMake (minimum tested version 3.22)
  • XCode (command line tools)
  • Apple SDKs for each of the specified targets
  • Python (versions 3.9-3.13 supported)

Optional Dependencies:

Since the project requires XCode and the SDK for each target platform, the project only works for macOS.

Getting started

This repository includes a simple example CMake project for testing the build system.

To build using pip from this repo:

pip install iosbuild
pip -m ios_build -v example

This builds the example project using sensible defaults for iOS (ARM64), iOS Simulator (ARM64), and macOS (ARM64). This configuration builds the files in a subdirectory build of the current directory, downloads the ios.toolchain.cmake file to the current directory and installs the libraries and the xcframework to install. If successful, this outputs a file libiosbuildexample.xcframeworks in the install/ directory.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iosbuild-0.2.1.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iosbuild-0.2.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file iosbuild-0.2.1.tar.gz.

File metadata

  • Download URL: iosbuild-0.2.1.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for iosbuild-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4645f853497942db8d6d62ff2ae5346c9cfe97e436a5dcd16b6e94327e2d4f0d
MD5 ff02f5eae042ded956d820fd8fd27e9f
BLAKE2b-256 5e31acff0d532e38c444756821daf61e792367b4274d902ac9a60cd2418d57a0

See more details on using hashes here.

File details

Details for the file iosbuild-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: iosbuild-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for iosbuild-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 206d91546458ae94cf4030983d5c3a72e69736a5d0ecd996f90844af369851ed
MD5 3de6803b8280d400f335da1a9729c930
BLAKE2b-256 6f92373e41ac6c5fa0fb0854ce1dfa6342ac072f7f264bc5d372e2af2d5f20bf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page