Installation instructions for iOS
This guide will help you install Theos on your jailbroken iOS device.
Platform | Minimum OS version | Targets supported |
---|---|---|
iOS | 5.0 | iOS |
All the commands shown in the following instructions are meant to be run as the “mobile” user, not root. Similarly, Theos is also meant to be run as a normal user, not root.
-
Install the following prerequisites:
- Procursus or Sam Bingner’s repository
- Theos Dependencies (package on either the Procursus or BigBoss repo, relies on the previous repository being installed first)
-
Set up the
THEOS
environment variable:bash:
echo "export THEOS=~/theos" >> ~/.profile
zsh:
echo "export THEOS=~/theos" >> ~/.zshenv
For this change to take effect, you must restart your shell. Kill the terminal app in the taskswitcher then re-open the terminal app and do
echo $THEOS
on your shell to check if this is working. -
Clone Theos to your device:
git clone --recursive https://github.com/theos/theos.git $THEOS
-
Get the toolchain:
Theos Dependencies installs iOS Toolchain.
-
Get an iOS SDK:
You can get patched SDKs from our SDKs repo.
curl -LO https://github.com/theos/sdks/archive/master.zip TMP=$(mktemp -d) unzip master.zip -d $TMP mv $TMP/sdks-master/*.sdk $THEOS/sdks rm -r master.zip $TMP
-
Install the Swift toolchain (optional):
Install
swift
if using Procursus, else installswift-toolchain
from the BigBoss repo.Note that compiling Swift code requires a fairly modern SDK. It is recommended that you use the latest SDK that you can get.