Actually, we need a Mac or Windows PC with XCode, Cygwin etc in order to develop an iOS app, But this guide will let you use your jailbroken iPhone or iPad to build apps. This guide is based on the video tutorial created by Billy Ellis. But when i followed the video tutorial I got into chaos as his tutorial is not simple.
There are several renaming and file management included. So I thought of making a step by step guide of the same. Follow the guide without skipping any steps, and your device can build iOS apps.
We assume that you posses a jailbroken device:
- Open Cydia and add the source, ” http://coolstar.org/publicrepo ” -Now we need to install a number of packages,
- Go to the search tab, search for this packages and install or queue them up for installation. Please don’t skip anything.
- Install ” BigBoss Recommended Tools “
- Install ” Perl “
- Install “iOs Toolchain”
- Install “MTerminal” or any terminal app of your choice. Mterminal will work on ios 9 if you have updated the PAM modules.
- Install “iFile”
- Now go to springboard(Home), launch the MTerminal we just installed.
- Type in “SU” it will ask for password and the default is “alpine” if you haven’t changed it. Now you will get SuperUser root privilleges
- Now type in “installtheos 3“
- The Terminal will start to install all the theos binaries, this will depend on your internet speed and can take a while.
- Close the MTerminal from the multitasking pane.
- Open iFile, navigate to /var/theos if this location has a bunch of files and folders then our theos installation via MTerminal went fine
- Now we need to fix Perl, we need to create a symlink of Perl, so that theos will know where to find it.
- In iFile navigate to /usr/local/bin you can see perl5.22.0 there. This is the updated Perl for ios9, Select perl5.22.0 click on clipboard at the bottom> Select Copy/Link
- Goto /usr/bin/ and click on clipboard>Create Link This will symlink perl.
- Now rename the perl5.22.0 at /usr/bin ( Which we symlinked) to just perl.
- Goto /var/theos/bin open the file bootstrap.sh look for this code as shown, where it says “arm” add “64” at the end and now it will be “arm64”
- Goto /var/theos/makefiles/targets add “64” to the end of the folder “Darwin-arm” so that it will be “Darwin-arm64”
- Goto /var/theos/makefiles/paltform add “64” to the end of “arm” in file”Darwin-arm.mk” so that it will be “Darwin-arm64.mk”
- Now the theos will work on 64 bit devices fluidly.
- Next, we need the iOS SDK, Open the link in Safari, select the latest version ie, ios8.1 click download. you might feel that the page is doing nothing, but it is downloading it in the background, just wait for few minutes and it will take you to a page and from there open the file in iFile. The Downloaded file will be stored in /var/mobile/Documents
- Copy the downloaded file (iPhoneOS8.1.sdk.tbz2)
- Goto /var/theos/ create a new folder named “sdks”, set type as directory, and name “sdks”
- Paste the copied file (iPhoneOS8.1.sdk.tbz2) here at /var/theos/sdks/
- Tap on the file select Unarchiver. This will take some time to extract, depends on your device, will give a result code 0 on successful extraction. Now we have the sdk in place.
- Open Mterminal type in “su” and pass “alpine”
- Type in cd /usr/bin/ now we have changed the directory where theos folder is
- Type in ldid -S clang
- Type in ldid -S clang++
- cd /var/mobile
- Now to test theos open nic.pl which is the instance creator.
- Type in /var/theos/bin/nic.pl hit 1 and return, make your test app.
- /var/mobile will contain your test app.
Now we have theos running on our iPhone and iPads , Happy developing.
Credit goes to Billy Ellis and his detailed video tutorial of the same.