0:00
what's going on YouTube geosite here so
0:02
in today's video I'm going to show you
0:03
how to install Theos in order to start
0:05
iOS tweak development on your computer
0:08
if you ever wanted to learn how to make
0:09
iOS tweaks for your jailbreak then this
0:11
is the first step you need to do to
0:14
install Theos because that's how we
0:16
build iOS tweaks this video is brought
0:17
to you by rbot a software that allows to
0:19
easily fix your iOS device if it's stuck
0:21
in recovery mode boot loop and so on so
0:23
we need to install Theos which is a
0:25
crossplatform build system for creating
0:27
iOS tweaks now with this you can create
0:30
much any kind of tweak you imagine and
0:31
you can also get the DB files at the end
0:34
Deb files to distribute with repos and
0:36
so on so that's how most people make
0:39
tweaks now I would highly recommend you
0:40
do it on a computer because while you
0:42
can build tweaks on iOS and you can type
0:45
them on the iOS keyboard it's not a
0:47
pleasant experience so the Theos can be
0:50
installed on Windows Mac OS and so on so
0:52
if you go here to installation on Theos
0:54
dodev you can see that they have IOS
0:56
support from iOS 5 and Up Mac OS support
0:59
from MAV or 10.9 and up Linux and
1:02
windows on Linux kernel 3.16 and Windows
1:05
10 now I'm going to show you on Mac W in
1:07
another video I will do windows as well
1:10
but if you want to get started with
1:11
tweak development this is the bare
1:13
minimum you need to do in order to get
1:15
yourself goinging to install Theos you
1:17
need Homebrew and Homebrew can be found
1:19
on here so it's brew. sh this is the
1:22
command you need to paste you press this
1:24
button over here go into a terminal
1:26
window go ahead like this and press
1:28
enter this will install Brew well you
1:30
need your password first this is the
1:32
password you use to log into your
1:33
computer by the way and yeah this
1:35
essentially installs like a package
1:37
manager for your Mac in order to be able
1:39
to install various commands from various
1:40
repos now once you have Brew or Mac
1:43
ports or precursors you need xcode as
1:46
well xcode can be found in the App Store
1:48
it looks like this so this is used to
1:50
build iOS apps now once you have all
1:52
this in place you have to run this
1:54
command over here this will get
1:56
everything you need in order to get
1:58
Theos running so in the same terminal
2:00
command you go ahead in here I'm going
2:01
to make this a little bit bigger so that
2:03
you can see I pasted the command and I
2:05
press enter and this will start
2:07
installing in configuring Theos that's
2:09
about it you can now close the terminal
2:11
window completely make sure you quit out
2:13
of it and you should be able to just run
2:15
the commands all right so after the
2:17
installation is complete all you need to
2:20
do is to get into the Nick which is the
2:22
new instance creator that allows you to
2:24
select what kind of tweak you want to
2:25
make to do so you just open a new
2:27
terminal window and you have this
2:29
command so it's dollar sign Theos in
2:31
capital letter /bin neck. and this will
2:35
open this kind of menu over here where
2:37
you can select the type of tweak you
2:38
want to make so in here you would very
2:41
likely have to select the number 19 over
2:43
here so iPhone tweak if you're making a
2:45
swift tweak iPhone tweak Swift this one
2:47
allows it to integrate Swift I would go
2:49
with number 19 which is a simple iOS
2:52
tweak press enter and we're going to
2:54
have to give it a project name so it's
2:56
going to be test test tweak then you
2:59
you're going to have to give it a bundle
3:01
identifier so like com. apple do
3:03
something so in my case this is going to
3:05
be com. gs. test tweak it can be
3:08
anything really and then the author
3:10
maintainer and then the mobile substrate
3:12
bundle filter essentially what will this
3:14
tweak be for if you wanted for
3:17
springboard you can have com. apple.
3:19
springboard and the list of applications
3:21
to terminate upon installation so dash
3:23
for none or springboard let's say
3:25
springboard because we would want it to
3:27
respring and that's it now it has
3:29
created in the working directory in this
3:31
case on desktop the folder containing
3:34
the tweak itself so that will be tweak.
3:36
X this is where your code will be then
3:38
you have the tweak pist and this one
3:40
contains information about The Tweak
3:42
itself and the filter and whatever so
3:44
what bundles are supported in which apps
3:46
you want injected then you have the make
3:48
file which will build the tweak a
3:50
control file and that's it so here in
3:52
t.x if you open it in xcode or any file
3:55
editor really you're going to see this
3:57
template over here you can remove this
3:59
start building your own or you can work
4:01
around it but um you essentially have to
4:04
use the same pretty much the same
4:06
language it's mostly Objective C with
4:08
some modifications over here and um the
4:11
way you do it is essentially by using
4:13
the orig over here to perform the
4:15
original function and then you can hook
4:17
certain features certain functions for
4:19
example I don't know UI kit stuff and
4:22
then pop an alert or change the
4:24
direction of something you know modify
4:26
the behavior of said function and then
4:28
pop AIG again in order to continue the
4:30
function from where it left off now here
4:32
you're going to get into it and you're
4:34
going to write your tweak but we need a
4:36
completely different video for that
4:37
because it's quite convoluted you're
4:39
going to have to find headers for
4:41
various Frameworks in order to see what
4:42
to hook there are ways to find other UI
4:45
components by using Flex for example so
4:47
we're going to get into those in a
4:49
different video but that's how you get
4:51
started making the tweak is actually
4:53
simple as well you can run a command to
4:56
make a rootless tweak so you would CD
4:58
into the uh directory containing all the
5:00
tweak data like this and then you're
5:02
going to have to run this command is
5:04
make do and you're going to have to add
5:06
Theos package unor scheme equal rootless
5:09
this will create a rootless tweak now
5:11
before you do that I would highly
5:13
recommend you go ahead here in the make
5:15
file and change the 7.0 over here to say
5:19
15.0 and this one will create a proper
5:22
tweak for newer iOS versions it will
5:24
make an arm 64 tweak and so on so then
5:26
you can just run the make do command
5:28
with the rootless model modifier and it
5:30
will build the tweak that's how it
5:32
builds so as you can see it says
5:34
installing over here we don't need to
5:35
install it we can press enter and that's
5:37
it here in the packages now we have the
5:40
Deb file for our tweak even though it's
5:42
an empty tweak it did compile so that's
5:44
how you would compile it you can pop it
5:46
now on the device and test it so yeah
5:48
you can do tweak development on Mac OS
5:50
you can also do it on Windows it's a
5:52
little bit more complicated but it can
5:54
be done we want to explore that in
5:56
further videos so that's it for the part
5:58
one of this making gu tweak Saga so
6:00
thank you for watching I'm G snow peace