Jump to content

[Tutorial] How to setup/install Kirb's Theos on your iDevice!


Rook

11 posts in this topic

Recommended Posts

Updated

In this tutorial, I will be showing you how to install Kirb's theos. Kirb's theos is a fork of the original theos by Dustin Howett but with more features!
 


(This list is sorted by the date the feature was added. The latest additions are at the bottom.)

  • 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=1 will 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)
  • TWEAK_TARGET_PROCESSES = Preferences MobileMail is a shortcut for killing a 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 do is a shortcut for make 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-packages removes non-final packages. (rpetrich)
  • Makes dpkg-deb use 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 debs. (kirb)
  • Use hbang/headers as a submodule. (kirb)
  • Supports the iOS 7 simulator. (kirb)
  • Adds a %property directive that allows for creating a property on a hooked class. (eswick)
  • File.m_CFLAGS support, to have compiler flags on one particular file. (rpetrich)
  • Provides IS_IPAD and IN_SPRINGBOARD macros 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.mk to 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 %hookf for hooking functions. Example (uroboro)
  • Supports building rpm packages. (rpetrich)
  • Adds STRIP=0 to not strip on release builds. (rpetrich)
  • Adds a stub libsubstrate.dylib binary so you don’t need to get one yourself. (kirb)
  • Kills Cydia if it’s open so you don’t get frustrated by dpkg status database locked errors. (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 NSLog in favor of more detailed log macros, HBLogDebug, HBLogInfo,HBLogWarn, and HBLogError. (kirb)
  • Makes debug builds the default. Use make DEBUG=0 or FORRELEASE=1 to 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, WillFour20uroboro; and bensge, kirb.
  • Supports building for iOS on Windows. (coolstar)
  • Theos symlinks are no longer made within projects. The $THEOS environment variable is used instead. (kirb)
  • instance_USE_SUBSTRATE = 0 can 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 show opens the operating system’s file manager and highlights the latest package. (kirb)
  • A THEOS_INSTANCE_NAME constant is passed to the compiler so the current instance’s name can be used in the code. (kirb)
  • PREINSTALL_TARGET_PROCESSES and INSTALL_TARGET_PROCESSES can be set to a list of processes to kill before and after installation respectively. (rpetrich)
  • instance_LIBRARY_EXTENSION can 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_FRAMEWORKS and instance_WEAK_LIBRARIES allow you to weak linkagainst 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 **envp arguments to be utilised in %ctor and%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)
  • %hook nil class/selector errors will be logged by Logos (rather than Substrate, or in the case of the internal generator, failing silently). The source of the errors are therefore more obvious, and the class can be included in the log (which Substrate can’t do). (kirb)

 


 
TL;DR it’s pretty awesome, you should use it
 
More updates and features can be found in the GitHub page here.
 
 
 
Let's begin!
 
 
Requirements:
You will need these dependancies:
- CoolStar's repo: http://coolstar.org/publicrepo/
- iOS Toolchain
- Darwin CC Tools
- git (from Saurik's repo or cydia.radare.org)
- MobileTerminal / iOS Terminal / NewTerm or PuTTY on your PC.
- Apple File Conduit "2" (to transfer the archived SDK to your iDevice)
- iFile/Filza (to extract the zipped SDK. Not necessary if you'll be using Terminal)
- Perl (from CoolStar's repo)
- 10 minutes of your time
 
 
Setup Instructions:
Step 1: Make sure you have installed all the dependencies listed above. And then open a Terminal of your choice. We'll be using PuTTY on Windows.
 
 

login as: root
[email protected]'s password:
Ls-iPad:~ root#

 
Step 2: CD into the folder where you will setup theos on (/var/) and run this command to clone Kirb's theos:
 

cd /var && git clone --recursive git://github.com/kirb/theos.git
Ls-iPad:~ root# cd /var && git clone --recursive git://github.com/kirb/theos.git
Cloning into 'theos'...
remote: Counting objects: 6411, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 6411 (delta 1), reused 0 (delta 0), pack-reused 6403
Receiving objects: 100% (6411/6411), 1.65 MiB | 547.00 KiB/s, done.
Resolving deltas: 100% (3281/3281), done.
Checking connectivity... done.
Ls-iPad:~ root#

 
The repository will also try to clone headers in /var/theos/include so if that fails then we will do it manually.
 
Failed message:

Submodule 'include' (https://github.com/hbang/headers.git) registered for path 'include'
Cloning into 'include'...
fatal: unable to access 'https://github.com/hbang/headers.git/': SSL certificate problem: unable to get local issuer certificate
Clone of 'https://github.com/hbang/headers.git' into submodule path 'include' failed

 
Fix:
 
Run this command one after another:

mkdir /var/theos/include && cd /var/theos/include && git clone git://github.com/hbang/headers.git

 
Output:

Ls-iPad:~ root# mkdir /var/theos/include && cd /var/theos/include && git clone git://github.com/hbang/headers.git
Cloning into 'headers'...
remote: Counting objects: 1222, done.
remote: Total 1222 (delta 0), reused 0 (delta 0), pack-reused 1222
Receiving objects: 100% (1222/1222), 509.51 KiB | 288.00 KiB/s, done.
Resolving deltas: 100% (457/457), done.
Checking connectivity... done.
Checking out files: 100% (380/380), done.

 
Step 3: After we have theos and headers cloned onto our system, we will now need the SDK.
 

cd /var/theos/

mkdir sdks

 

Now download the SDK from here (iOS 7.1 or 8.1 SDK is suggested) and send the .tbz2 archive to /var/theos/sdks.
 
Once that is there, we will need to unarchive the file. You can do this using iFile  but we'll be using this command to extract it:
 

cd /var/theos/sdks

tar xvjf *.tbz2*

rm -rf *.tbz2*

The commands above extract the archive, and them removes the .tbz2 file from that directory since it's not needed anymore.
 
Now run NIC and enjoy! :)
 
 
Extra:
By default, Kirb's theos does not use the theos symlink to your newly created projects using NIC. To fix this, go to /var/theos/bin/nic.pl and edit the file and change this line:
 

my %CONFIG = (link_theos => 0);

To:
 

my %CONFIG = (link_theos => 1);

Save it and done.

 

---------

 

You can install DHowett's/Rpetrich's/CoolStar's theos alongside this also. 

Posted
/usr/libexec/git-core/git-submodule: line 153: 15599 Broken pipe: 13         ( git ls-files -z --error-unmatch --stage -- "$@" || echo "unmatched pathspec exists" )
     15600 Killed: 9               | /usr/bin/perl -e '
	my %unmerged = ();
	my ($null_sha1) = ("0" x 40);
	my @[member=Out] = ();
	my $unmatched = 0;
	$/ = "\0";
	while (<STDIN>) {
		if (/^unmatched pathspec/) {
			$unmatched = 1;
			next;
		}
		chomp;
		my ($mode, $sha1, $stage, $path) =
			/^([0-7]+) ([0-9a-f]{40}) ([0-3])\t(.*)$/;
		next unless $mode eq "160000";
		if ($stage ne "0") {
			if (!$unmerged{$path}++) {
				push @[member=Out], "$mode $null_sha1 U\t$path\n";
			}
			next;
		}
		push @[member=Out], "$_\n";
	}
	if ($unmatched) {
		print "#unmatched\n";
	} else {
		print for (@[member=Out]);
	}
	'
/usr/libexec/git-core/git-submodule: line 153: 15605 Broken pipe: 13         ( git ls-files -z --error-unmatch --stage -- "$@" || echo "unmatched pathspec exists" )
     15606 Killed: 9               | /usr/bin/perl -e '
	my %unmerged = ();
	my ($null_sha1) = ("0" x 40);
	my @[member=Out] = ();
	my $unmatched = 0;
	$/ = "\0";
	while (<STDIN>) {
		if (/^unmatched pathspec/) {
			$unmatched = 1;
			next;
		}
		chomp;
		my ($mode, $sha1, $stage, $path) =
			/^([0-7]+) ([0-9a-f]{40}) ([0-3])\t(.*)$/;
		next unless $mode eq "160000";
		if ($stage ne "0") {
			if (!$unmerged{$path}++) {
				push @[member=Out], "$mode $null_sha1 U\t$path\n";
			}
			next;
		}
		push @[member=Out], "$_\n";
	}
	if ($unmatched) {
		print "#unmatched\n";
	} else {
		print for (@[member=Out]);
	}
	'

ldid 1.2.1, iOS 9

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Cooking Craze: Restaurant Game Cheats v2.6.1 +1
      Modded/Hacked App: Cooking Craze: Restaurant Game By Big Fish Games, Inc
      Bundle ID: com.bigfishgames.cookingempireuniversalf2p
      iTunes Store Link: https://apps.apple.com/us/app/cooking-craze-restaurant-game/id1029094059?uo=4

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Free Store (not Free iAP)


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/191693-cooking-craze-restaurant-game-v240-jailed-cheats-1/

       

      📥 iOS Hack Download Link: https://iosgods.com/topic/191694-cooking-craze-restaurant-game-cheats-v250-1/
      • 6 replies
    • Chef & Friends: Cooking Game Cheats v1.32.5 +1
      Modded/Hacked App: Chef & Friends: Cooking Game By MYTONA Ltd.
      Bundle ID: com.mytona.cheftales
      iTunes Store Link: https://apps.apple.com/us/app/chef-friends-cooking-game/id1586951898?uo=4


      Hack Features:
      - Infinite Currencies (Hats, Coins, Gems)

      NOTE: May bug out the game so better try on your throw away account first 


      iOS Hack Download Link: https://iosgods.com/topic/178904-chef-friends-cooking-game-cheats-v141-1/
      • 28 replies
    • Cats & Soup Cheats v2.72.0 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Infinite Currencies
      - Unlocked All Specials and No Ads

       

      Non-Jailbroken Hack: https://iosgods.com/topic/157486-cats-soup-v2630-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v2640-2/
      • 305 replies
    • AdVenture Communist v6.47.0 +2 Cheats
      Modded/Hacked App: AdVenture Communist By Hyper Hippo Publishing Ltd.
      Bundle ID: com.kongregate.mobile.adventurecommunist
      iTunes Store Link: https://apps.apple.com/us/app/adventure-communist/id1225683141?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Freeze Currencies
      - Unlimited Cards [Get Some]

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/149902-adventure-communist-v6430-2-cheats/
      • 131 replies
    • Choices: Stories You Play Cheats v4.3.0 +4
      Modded/Hacked App: Choices: Stories You Play By Pixelberry Studios
      Bundle ID: com.pixelberrystudios.choices
      iTunes Store Link: https://apps.apple.com/us/app/choices-stories-you-play/id1071310449?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Free Premium Choices
      - Free Outfits
      - Free Hairstyles
      - Free Looks

      Note: able to purchase without having enough gems.

       

      Non-Jailbroken Hack: https://iosgods.com/topic/147462-choices-stories-you-play-v410-4-cheats-for-jailed-idevices/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147155-choices-stories-you-play-cheats-v412-4/
        • Informative
        • Agree
        • Like
      • 360 replies
    • Family Island — Farm game v2025148.1.76088 Jailed Cheats +1
      Modded/Hacked App: Family Island™ — Farm game by Melsoft
      Bundle ID: com.MelsoftGames.FamilyIsland
      iTunes Store Link: https://apps.apple.com/us/app/family-island-farm-game/id1464689103?uo=4&at=1010lce4


      Hack Features:
      - Cheat Engine Enabled


      iOS Hack Download Link: https://iosgods.com/topic/115337-arm64-family-island-%E2%80%94-farm-game-v20190824862-jailed-cheats-1/
        • Informative
      • 2,312 replies
    • Eternium Cheats v1.38.22 +11
      Modded/Hacked App: Eternium By Making Fun, Inc.
      Bundle ID: com.makingfun.mageandminions
      iTunes Store Link: https://apps.apple.com/us/app/eternium/id579931356?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - 5K Gems When Completed Stage
      - Infinite Gold
      - Infinite Cosmetic
      - Infinite Yellow Stone
      - Multiply Attack (Linked with Enemy)
      - No Skills Cooldown
      - No Consumable Cooldown
      - Multiply Attack Speed
      - Instant Regen Health
      - Always Crit
      - Material Drops (When you killed an Enemy it will drop materials for crafts)



      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194526-eternium-cheats-v13355-6/
      • 85 replies
    • Bloody Bastards Cheats v4.2.2 +2
      Modded/Hacked App: Bloody Bastards By Tibith Ltd
      Bundle ID: com.tibith.badboxing2
      iTunes Store Link: https://apps.apple.com/us/app/bloody-bastards/id1593430099?uo=4


      Hack Features:
      - Infinite Coins
      - Dumb Enemy (Single Player)


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/158327-bloody-bastards-v315-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/158325-bloody-bastards-cheats-v315-2/
      • 159 replies
    • Westland Survival - Cowboy RPG v10.0 +7 [ Items Cheat ]
      Modded/Hacked App: Westland Survival - Cowboy RPG By HELIO LTD
      Bundle ID: com.heliogames.a1
      iTunes Store Link: https://apps.apple.com/us/app/westland-survival-cowboy-rpg/id1339238576?uo=4


      Hack Features:
      - Unlimited Energy / Instant Energy Refills
      - Unlock All Blueprints
      - Items Duplicate When Split / Items Hack
      - Unlimited Consumable Items
      - Unlimited Item Durability
      - God Mode / Never Die -> Linked with enemies. Useful for looting.
      - One Hit Kill / High Damage -> Linked with enemies. Use with caution.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 421 replies
    • Grand Mountain Adventure 2 v1.0405 Jailed Cheats +1
      Modded/Hacked App: Grand Mountain Adventure 2 By Toppluva AB
      Bundle ID: com.toppluva.grandmountain2
      iTunes Store Link: https://apps.apple.com/us/app/grand-mountain-adventure-2/id6475040075?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Free iAP (Press cancel when Buy) -- Turn on cheat option inside iOSGods Menu first

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/192158-grand-mountain-adventure-2-v1018-jailed-cheats-1/
        • Like
      • 53 replies
    • Jurassic World Alive v3.14.66 - [ Dino Don't Move & More ]
      Modded/Hacked App: Jurassic World Alive By Ludia
      Bundle ID: com.ludia.jw2
      iTunes Store Link: https://apps.apple.com/us/app/jurassic-world-alive/id1231085864


      Hack Features:
      - Dino Don't Move
      - Inf. Battery
      - VIP Enabled

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
      • 1,692 replies
    • Car Match - Traffic Puzzle v2.61 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Car Match - Traffic Puzzle By GRAND GAMES OYUN VE YAZILIM ANONIM SIRKETI
      Bundle ID: com.grandgames.carmatch
      App Store Link: https://apps.apple.com/us/app/car-match-traffic-puzzle/id6504421808?uo=4

       
       

      🤩 Hack Features

      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      - Auto Win -> Quit the level.
      - Level Modifier
      • 1 reply
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines