Features
Below is a list of features implemented since the original Theos by Dustin Howett. Said features are sorted in ascending order by their implementation date (where the latest additions are at the bottom).
(To do: These features should be properly documented and this file removed.)
- Fallback/last resort headers can be placed at
include/_fallback; this can be used to provide drop-in replacements for missing SDK headers. (rpetrich) make update-theos, predictably enough, updates Theos to the latest commit. (rpetrich)make package FINALPACKAGE=1will optimise assets (runs pincrush on PNG images, and converts plists to binary format) and generate a package with a “clean” version (ie, no build number). Recommended when building a package you’re about to release. (rpetrich/kirb)INSTALL_TARGET_PROCESSES = Preferences MobileMailis a shortcut for killing a process. (PreviouslyTWEAK_TARGET_PROCESS) (rpetrich)- Unlike rpetrich’s fork, the internal generator (using Objective-C runtime functions directly) is changed back to the Substrate generator (using Substrate’s wrappers around the runtime functions to assure future compatibility).
make dois a shortcut formake package install. (rpetrich)- Each architecture is compiled separately, rather than all being compiled at once. This avoids some issues with the original design of Theos. (rpetrich)
- Different SDKs can be used for different architectures, making it possible to for instance use Xcode 4.4 for armv6 compilation alongside a newer Xcode for armv7/arm64. (rpetrich)
- All generated files are stored in
.theos, rather than many different directories in the root of the project. (rpetrich) make clean-packagesremoves non-final packages. (rpetrich)- Makes
dpkg-debuse lzma compression, because the current format dpkg-deb uses (xz) is not supported by Telesphoreo’s old dpkg build. (kirb) - Packages are output to a subdirectory called
packages. (kirb) - Use hbang/headers as a submodule. (kirb)
- Supports the iOS 7 simulator. (kirb)
- Adds a
%propertydirective that allows for creating a property on a hooked class. (eswick) File.m_CFLAGSsupport, to have compiler flags on one particular file. (rpetrich)- Provides
IS_IPADandIN_SPRINGBOARDmacros in the prefix header. (kirb) - Imports Cocoa and AppKit when targeting OS X. (kirb)
- When using iOS SDK 7.0 or newer, and deploying to iOS 5 or newer, Theos defaults to building for armv7 and arm64. (rpetrich/kirb)
- Adds
simbltweak.mkto help in the building of SIMBL tweaks for OS X. (kirb) - Adds modern app and preference bundle templates. (kirb)
- Adds
%dtor { ... }directive to run code when the process is deconstructing. (uroboro) - Improves error handling when an SDK isn’t found. (uroboro)
- Adds
%hookffor hooking functions. Example (uroboro) - Supports building rpm packages. (rpetrich)
- Adds
STRIP=0to not strip on release builds. (rpetrich) - Adds a stub
libsubstrate.dylibbinary so you don’t need to get one yourself. (kirb) - Fixes lack of a symlink that allows Theos to work on arm64. (kirb)
- Supports Swift compilation and linking. Incomplete as it is uncertain whether Swift libraries are allowed to be distributed via Cydia. (kirb)
- Deprecates
NSLogin favor of more detailed log macros,HBLogDebug,HBLogInfo,HBLogWarn, andHBLogError. (kirb) - Makes debug builds the default. Use
make DEBUG=0,FOR_RELEASE=1orFINALPACKAGE=1to build without debug. (kirb) - Bumps default deployment target to iOS 4.3 when using iOS SDK 6.0 and iOS 5.0 when using iOS SDK 7.0. (kirb)
- Includes NIC templates from DHowett, conradev, WillFour20; uroboro; and bensge, kirb.
- Supports building for iOS on Windows. (coolstar)
- Theos symlinks are no longer made within projects. The
$THEOSenvironment variable is used instead. (kirb) instance_USE_SUBSTRATE = 0can be used to switch tweaks to the internal generator and not link against Substrate. (kirb)- Default rules, variables, etc. can be set in
~/.theosrc(a makefile). (kirb) make showopens the operating system’s file manager and highlights the latest package. (kirb)- A
THEOS_INSTANCE_NAMEconstant is passed to the compiler so the current instance’s name can be used in the code. (kirb) PREINSTALL_TARGET_PROCESSESandINSTALL_TARGET_PROCESSEScan be set to a list of processes to kill before and after installation respectively. (rpetrich)instance_LIBRARY_EXTENSIONcan be set to a custom file extension when building a library/tweak, or-for no extension. (kirb)- Output is colored so it’s easier to read at a glance. (kirb)
instance_WEAK_FRAMEWORKSandinstance_WEAK_LIBRARIESallow you to weak link against frameworks/libraries. (kirb)- Enables clang modules. Note that C++ modules are only enabled with iOS 8.4 and OS X 10.10 or newer, when building on OS X. (kirb)
- Allows
int argc, char **argv, char **envparguments to be utilised in%ctorand%dtor. (uroboro) - Third party frameworks can be placed inside
$THEOS/lib, and utilised withinstance_EXTRA_FRAMEWORKS. (kirb) - Adds backwards compatibility for nullability keywords when building with older versions of clang that don’t support it. (kirb)
- Building for iOS Simulator now disables linking Substrate by default, allows linking against OS X binaries, and builds for only x86_64 by default (rather than both i386 and x86_64) when building for iOS 8.0 or newer. (kirb)
- Integrates the fix needed for tweaks to work in 32-bit processes on iPhone 6s. (saurik)
- Adds
make troubleshoot, for getting quick links to troubleshooting info and uploading themakeoutput to GitHub Gist for sharing. (kirb) - Adds support for building for watchOS and tvOS. (kirb)