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.
On Linux or WSL:
sudo apt-get install fakeroot git perl clang-6.0 build-essentialbuild-essential or equivalent for your distro.
Additionally on WSL:
sudo update-alternatives --set fakeroot /usr/bin/fakeroot-tcpOn 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 $THEOSon your shell to check if this is working.
Clone Theos to the device
Get the toolchain
Get an iOS SDK
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 $THEOSon 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
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
For this change to take effect, you must restart your shell. Open a new tab and do
echo $THEOSon 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
Was this helpful?