Installing Theos
This page will go through the steps of installing Theos for your development platform.
Linux
This guide will help you install Theos on your Linux machine, Linux within Windows via Windows Subsystem for Linux and Google Cloud Shell.
Development Platforms
Platform | Minimum OS Version | Supported Targets |
Linux | Linux Kernel 3.16 | Linux, iOS |
Windows 10 | Windows 10 Build 14393 | Linux, iOS |
Prerequisites
All the commands shown on the following instructions are meant to be run as the "user" user, not root. Similarly, Theos is also meant to be run as a normal user, not root.
Follow the instructions at http://apt.llvm.org to add the correct clang-6.0 source for your Linux distro, then run sudo apt-get update
to refresh your sources.
On Linux or WSL:
build-essential or equivalent for your distro.
Additionally on WSL:
On Google Cloud Shell:
Set up the THEOS environment variable
For this change to take effect, you must restart your shell. Open a new tab and do
echo $THEOS
on your shell to check if this is working.
Clone Theos to the device
Get the toolchain
Get an iOS SDK
You can get patched SDKs from here: https://github.com/theos/sdks
Install the Swift toolchain (Optional)
Note that the minimum SDK version required to compile Swift code is currently iOS 11.2.
iOS
Development Platforms
Platform | Minimum OS Version | Supported Targets |
iOS | iOS 5.0 | iOS |
Prerequisites
All the commands shown on the following instructions are meant to be run as the "user" user, not root. Similarly, Theos is also meant to be run as a normal user, not root.
Add and install the following in Cydia
Theos Dependencies
Set up the THEOS environment variable
For this change to take effect, you must restart your shell. Kill the terminal app in the App Switcher then reopen the terminal app and do
echo $THEOS
on your shell to check if this is working.
Clone Theos to the device
Get the toolchain
Theos Dependencies contains the iOS Toolchain
Get an iOS SDK
You can get patched SDKs from here: https://github.com/theos/sdks
Install the Swift toolchain (Optional)
Note that the minimum SDK version required to compile Swift code is currently iOS 11.2.
macOS
Development Platforms
Platform | Minimum OS Version | Supported Targets |
macOS | Mac OS X Mavericks (10.9) | iOS, macOS, watchOS, tvOS |
Prerequisites
All the commands shown on the following instructions are meant to be run as the "user" user, not root. Similarly, Theos is also meant to be run as a normal user, not root.
Install the following tools
Xcode (mandatory)
After installing the above tools, run
brew install ldid xz
Set up the THEOS environment variable
If you are using macOS 10.14 or older, change ~/.zprofile
to ~/.profile
. The default shell was changed from bash to zsh in macOS 10.15. You can check which one you are using by running echo $SHELL
.
For this change to take effect, you must restart your shell. Open a new tab and do
echo $THEOS
on your shell to check if this is working.
Clone Theos to the device
Get the toolchain
Xcode includes the toolchain
Get an iOS SDK
Xcode always provides the latest iOS SDK, but as of Xcode 7.3, it no longer includes private frameworks you can link against. This may be an issue when developing tweaks. You can get patched SDKs from the SDKs repository.
Windows
In-Progress
Last updated