### Install System Dependencies with Homebrew Source: https://github.com/kivy/kivy-ios/blob/master/README.md Install necessary system dependencies using Homebrew. Ensure libtool is linked. ```bash brew install autoconf automake libtool pkg-config brew link libtool ``` -------------------------------- ### Install Xcode Command Line Tools Source: https://github.com/kivy/kivy-ios/blob/master/README.md Ensure Xcode and its command line tools are installed. This is a prerequisite for using the kivy-ios toolchain. ```bash xcode-select --install ``` -------------------------------- ### Install Kivy-iOS from PyPI Source: https://github.com/kivy/kivy-ios/blob/master/README.md Install the kivy-ios package using pip within a Python virtual environment. ```bash python3 -m venv venv . venv/bin/activate pip3 install kivy-ios ``` -------------------------------- ### Clone and Install Kivy-iOS Locally Source: https://github.com/kivy/kivy-ios/blob/master/README.md Steps to clone the Kivy-iOS repository, set up a virtual environment, and install it locally for development. This allows direct use of the `toolchain.py` script. ```bash git clone https://github.com/kivy/kivy-ios.git cd kivy-ios/ python3 -m venv venv . venv/bin/activate pip install -e . ``` -------------------------------- ### Install Packages with Pip via Toolchain Source: https://github.com/kivy/kivy-ios/blob/master/README.md Install Python packages that do not require compilation directly using the toolchain's pip command. ```bash $ toolchain pip install plyer ``` -------------------------------- ### Help for Kivy-iOS Toolchain Source: https://github.com/kivy/kivy-ios/blob/master/README.md Execute this command after setting up the local Kivy-iOS environment to view the help documentation for the `toolchain.py` script. ```bash python toolchain.py --help ``` -------------------------------- ### List Available Recipes Source: https://github.com/kivy/kivy-ios/blob/master/README.md View all available recipes and their versions that can be compiled by the toolchain. ```bash $ toolchain recipes ``` -------------------------------- ### Display All Toolchain Commands Source: https://github.com/kivy/kivy-ios/blob/master/README.md List all available commands for the kivy-ios toolchain. ```bash $ toolchain ``` -------------------------------- ### Build Multiple Recipes Simultaneously Source: https://github.com/kivy/kivy-ios/blob/master/README.md Compile multiple recipes at once by listing them as parameters to the build command. ```bash $ toolchain build python3 openssl kivy ``` -------------------------------- ### Build Python and Kivy Recipes Source: https://github.com/kivy/kivy-ios/blob/master/README.md Compile the Python and Kivy recipes. This is a foundational step for building Kivy applications. ```bash $ toolchain build python3 kivy ``` -------------------------------- ### Build Host Python and Recipes with ARM64 Architecture Source: https://github.com/kivy/kivy-ios/blob/master/README.md Use these commands to compile host Python and other recipes specifically for the ARM64 architecture, reducing IPA size. Note that these packages are for deployment and will not run on iOS emulators. ```bash toolchain build hostpython3 ``` ```bash toolchain build python3 kivy --arch=arm64 ``` -------------------------------- ### Kivy-iOS Toolchain Usage Source: https://github.com/kivy/kivy-ios/blob/master/README.md This shows the available commands for the `toolchain.py` script, used for building and managing Kivy recipes and Xcode projects on iOS. Use `--help` for detailed command options. ```bash toolchain [] Available commands: build Build a recipe (compile a library for the required target architecture) clean Clean the build of the specified recipe distclean Clean the build and the result recipes List all the available recipes status List all the recipes and their build status Xcode: create Create a new xcode project update Update an existing xcode project (frameworks, libraries..) launchimage Create Launch images for your xcode project icon Create Icons for your xcode project pip Install a pip dependency into the distribution pip3 Install a pip dependency into the python 3 distribution ``` -------------------------------- ### Open Xcode Project Source: https://github.com/kivy/kivy-ios/blob/master/README.md Open the generated Xcode project in Xcode to build and run the Kivy application on iOS. ```bash $ open touchtracer-ios/touchtracer.xcodeproj ``` -------------------------------- ### Create Xcode Project for Kivy App Source: https://github.com/kivy/kivy-ios/blob/master/README.md Generate an Xcode project for a Kivy application. The app directory must contain a main.py file. ```bash $ toolchain create <app_directory> $ toolchain create Touchtracer ~/code/kivy/examples/demo/touchtracer ``` -------------------------------- ### Clean a Specific Recipe Build Source: https://github.com/kivy/kivy-ios/blob/master/README.md Remove the compiled build artifacts for a specific recipe. Useful for recompiling or freeing up space. ```bash $ toolchain clean openssl ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.