A fully-featured, stable port of Python 3.12 for jailbroken iOS devices (arm64). This project provides a Debian package (.deb) that installs a complete Python environment, optimized for mobile usage and development.
The package is built for rootless jailbreaks and installs under /var/jb (for example, python3 is installed at /var/jb/usr/local/bin/python3).
- Python 3.12: Full standard library with SSL/TLS support (OpenSSL 1.1.1).
- Package Management:
pipavailable viapython3 -m ensurepip. - Automatic Setup: Configures PATH automatically upon installation.
Add the repository to your package manager (Sileo, Zebra, Cydia):
https://k1tty-xz.github.io/repo/
Then search for Python 3.12 (k1tty) and install.
After installation, you may need to reload your shell profile or start a new terminal session for the PATH to update:
source /var/jb/etc/profileTo install pip:
python3 -m ensurepip
pip3 install --upgrade pipTo build this package yourself, you can use the provided GitHub Actions workflow or build locally on macOS.
- macOS (for Xcode toolchain)
- Xcode Command Line Tools
- Homebrew (for dependencies like
ldid,automake)
-
Clone the repository:
git clone https://github.com/k1tty-xz/python3.12-ios-arm64.git cd python3.12-ios-arm64 -
Install build tools:
bash scripts/install-build-tools.sh
-
Set up environment variables:
export PY_VER=3.12.5 export LIBFFI_VER=3.4.4 export MIN_IOS=14.5 export PYTHON_FOR_BUILD=$(which python3.12 || which python3)
-
Build and Package:
# This will download sources, compile, and create the .deb make allThe resulting
.debfile will be in thework/directory. The package payload is rooted at/var/jb.
scripts/: Build scripts and patches.build-python.sh: Main build logic for CPython.entitlements.plist: Entitlements for code signing.python-configure.patch: Patch for cross-compilation support.
debian/: Debian packaging metadata (control,prerm, etc.)..github/: CI/CD configuration.
- k1tty-xz: Main maintainer.
- Python Software Foundation: For the Python programming language.
- OpenSSL: For the crypto library.
This project is licensed under the MIT License. See LICENSE for details.