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.

Metadata

Release files for iOSBuild 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iOSBuild 0.2.1
File Size Uploaded Provenance Actions
iosbuild-0.2.1.tar.gz 23.8 kB Without provenance Details for iosbuild-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iOSBuild 0.2.1
File Interpreter ABI Platform Actions
iosbuild-0.2.1-py3-none-any.whl Python 3 none any Details for iosbuild-0.2.1-py3-none-any.whl

Total release size: 41.7 kB

Release files / iosbuild-0.2.1.tar.gz

Download URL iosbuild-0.2.1.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4645f853497942db8d6d62ff2ae5346c9cfe97e436a5dcd16b6e94327e2d4f0d
BLAKE2b-256 checksum
How to use checksums
5e31acff0d532e38c444756821daf61e792367b4274d902ac9a60cd2418d57a0
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / iosbuild-0.2.1-py3-none-any.whl

Download URL iosbuild-0.2.1-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
206d91546458ae94cf4030983d5c3a72e69736a5d0ecd996f90844af369851ed
BLAKE2b-256 checksum
How to use checksums
6f92373e41ac6c5fa0fb0854ce1dfa6342ac072f7f264bc5d372e2af2d5f20bf
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for iOSBuild 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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