Varun Haridas

Tech geek & Entrepreneur

December 2, 2015 varun Comments

How to Make iOS apps without Mac or PC – Theos setup guide

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:

    1. Open Cydia and add the source, ” http://coolstar.org/publicrepo ” -Now we need to install a number of packages,
    2. Go to the search tab, search for this packages and install or queue them up for installation. Please don’t skip anything.
    3. Install ” BigBoss Recommended Tools “
    4. Install ” Perl “
    5. Install “iOs Toolchain”
    6. Install “MTerminal” or any terminal app of your choice. Mterminal will work on ios 9 if you have updated the PAM modules.
    7. Install “iFile”
    8. Now go to springboard(Home), launch the MTerminal we just installed.
    9. 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
    10. Now type in “installtheos 3“
    11. The Terminal will start to install all the theos binaries, this will depend on your internet speed and can take a while.
    12. Close the MTerminal from the multitasking pane.
    13. Open iFile, navigate to /var/theos if this location has a bunch of files and folders then our theos installation via MTerminal went fine
    14. Now we need to fix Perl, we need to create a symlink of Perl, so that theos will know where to find it.
    15. 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
    16.  Goto /usr/bin/  and click on clipboard>Create Link This will symlink perl.
    17. Now rename the perl5.22.0 at /usr/bin ( Which we symlinked) to just perl.
    18. 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”arm64
    19. Goto /var/theos/makefiles/targets  add “64” to the end of the folder “Darwin-arm” so that it will be “Darwin-arm64”

  1. 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”
  2. Now the theos will work on 64 bit devices fluidly.
  3. 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
  4. Copy the downloaded file (iPhoneOS8.1.sdk.tbz2)
  5. Goto /var/theos/ create a new folder named “sdks”, set type as directory, and name “sdks”
  6. Paste the copied file (iPhoneOS8.1.sdk.tbz2) here at /var/theos/sdks/
  7. 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.
  8. Open Mterminal type in “su” and pass “alpine”
  9. Type in cd /usr/bin/  now we have changed the directory where theos folder is
  10. Type in ldid -S clang  
  11. Type in  ldid -S clang++
  12. cd /var/mobile
  13. Now to test theos open nic.pl which is the instance creator.
  14. Type in /var/theos/bin/nic.pl hit 1 and return, make your test app.test-app-dir
  15. /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.

developers Apple, How-to's 6 Minutes Read (0)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Varun Haridas

Copyright © 2017 Varun Haridas