Welcome to iPadForums.net Guest - Click Here to Register

How to create your own app for jailbreak iPad

This is a discussion on How to create your own app for jailbreak iPad within the iPad Development forums, part of the iPad App Store category; I was trying to figure out how to start writing my own apps for a jailbreak iPad, so here is what I figured out so ...

iPadForums.net is the original Apple iPad Forum! Registered Users do not see these ads. Please Register - It's Free!
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    iPF Novice
    Member #
    47468
    Liked
    1 times
    Join Date
    Apr 2011
    Posts
    78

    How to create your own app for jailbreak iPad

    I was trying to figure out how to start writing my own apps for a jailbreak iPad, so here is what I figured out so far.

    NOTE: This is all done on an iPad first generation 16GB WiFi with redsn0w jailbreak running iOS 4.3.2 and using my Windows XP PC to access it.

    NOTE: My understanding is that the steps below will allow you compile C, C++ or Objective C.

    HELPFUL LINKS:
    Theos/Getting Started - iPhone Development Wiki
    Chapter*1.*Makefiles
    IRC @ irc.saurik.com (channel #theos )

    STEP #1
    jailbreak your ipad

    STEP #2

    From Cydia you will need to install
    BigBoss Recommended Tools (id: bigbosshackertools)

    I think you can use MobileTerminal directly on the iPad, but personally I access the iPad from my PC. I use PSPad to edit my text files, then use WinSCP to upload the files to the iPad and then use PuTTY for command line access.
    To use WinSCP and PuTTY you will need to install OpenSSH from Cydia as well.

    STEP #3
    Install sdk version 3 (required for Theos to work properly). This is part of BigBos Recommended Tools. From command line type:
    installsdk3

    STEP #4
    Install PERL and THEOS
    1. Create a file at /etc/apt/sources.list.d/coredev.nl.list containing the following line:
      Code:
      deb http://coredev.nl/cydia iphone main
    2. Create a file at /etc/apt/sources.list.d/howett.net.list containing the following line:
      Code:
      deb http://nix.howett.net/theos ./
    3. As root, issue this command:
      Code:
      apt-get update
    4. Then this command:
      Code:
      apt-get install perl net.howett.theos
    NOTE: Steps #1 to #4 would only be performed once on your iPad and you should never have to do them again!

    COMMAND LINE TOOL EXAMPLE
    STEP #5
    Use New Instance Creator to create a NEW project. Type
    cd /var/theos/bin
    /var/theos/bin/nic.pl


    For this example we will make a Hello World command line tool

    Choose template: 4 (iphone/tool)
    Project Name: helloworld
    Package Name: com.memyself.helloworld
    Author Maintainer Name: me myself

    This should create a new directory (in your current working directory):
    /var/theos/bin/helloworld

    STEP #6
    Open the following file with your favorite text editor:
    /var/theos/bin/helloworld/main.mm

    Add
    printf("Hello World\n");
    on the line BEFORE
    return 0;
    and save the changes.

    STEP #7
    Run make to compile using the makefile by typing:
    /var/theos/bin/helloworld/make

    This should create a new directory (obj) with your compiled command line tool.

    STEP #8
    To run our fabulous Hello World command line tool type:
    /var/theos/bin/helloworld/obj/helloworld

    That's it!

    I just typed all this up from memory, so if you find a mistake let me know and I will fix it. Also, the #theos channel on IRC @ irc.saurik.com is where I got most of this info, so they are a good reference as well.


    GUI APPLICATION EXAMPLE
    Do Step #1 to Step #4 above if you have not done them already (they should only need to be done once, and then you won't have to do them ever again.)

    STEP #5
    Use New Instance Creator to create a NEW project. Type
    cd /var/theos/bin
    /var/theos/bin/nic.pl


    For this example we will use the default application "red screen" with icon on the springboard:

    Choose template: 1 (iphone/application)
    Project Name: redscreen
    Package Name: com.memyself.redscreen
    Author Maintainer Name: me myself

    This should create a new directory (in your current working directory):
    /var/theos/bin/redscreen

    STEP #6
    Run make package install to compile using the makefile and install the app by typing:
    /var/theos/bin/redscreen/make package install

    This should create appropriate application files and directories.

    STEP #7
    You now need to re-spring the spring board. You can do this by either re-booting your iPad, or you can run the uicache command as the mobile user (su mobile first then uicache).

    That's it! You should now have an application icon on the springboard called redscreen. Tap it and look at an amazing red screen!

    UNINSTALL (applies to application only, not to command line tool)
    If you need to uninstall your application, you would run dpkg -r packagename from command line, and then re-spring (reboot ipad or run uicache from mobile user):
    dpkg -r com.memyself.redscreen

    Again let me know if you find any issues!
    Last edited by jsherk; 05-05-2011 at 03:34 PM.
    redsn0w iPad 1 16GB WiFi v4.3.2
    Remove Background, VLC Media Player,
    Activator, Animate, Browser Changer,
    FakeClockUp, Icon Renamer,
    iFile,
    iSH****, OpenSSH

    [B]

  2. Ads


  3. #2
    Super Moderator
    Member #
    14571
    Liked
    632 times
    Join Date
    Sep 2010
    Location
    Troon, Scotland
    Posts
    7,104
    Thanks for the info. We have a development section, so I'm moving the thread over there where hopefully it can get some good feedback and grow into a valuable resource for the site.
    15" MacBookPro with Retina Display 16GB 3.4GHz i7 256GB | iPad4 WiFi 32GB 6.1.2 (evasi0n) | iPad3 4G 64GB 6.1.2 (evasi0n) | iPad2 3G 64GB 5.1.1 (redsn0w) | iPad1 3G 64GB 4.3.3 (jbme) |
    iPhone5 32GB 6.1.2 (evasi0n) | iPhone4S 64GB 5.1.1 (absinthe) | iPhone4 32GB 7.0b2 (stock) | iPhone3G 16GB 3.1.3 (jbme) | iPod Classic 6G 160GB (stock) | AppleTV 2G 5.0.2 (seas0npass)


    Please review the hacking section rules and our main rules before posting!

  4. #3
    iPF Legend
    Member #
    7489
    Liked
    132 times
    Join Date
    Jun 2010
    Location
    Sacramento, California
    Posts
    14,940
    Yay! I am very glad.
    Marie ~


    64GB WiFi/3G iPad1 ~ JB with jailbreakme.com ~



    Forum Rules. Please Read.

    appleforums.net

  5. #4
    iPF Novice
    Member #
    47468
    Liked
    1 times
    Join Date
    Apr 2011
    Posts
    78
    I have just updated instructions above with how to create a sample gui application as well.
    redsn0w iPad 1 16GB WiFi v4.3.2
    Remove Background, VLC Media Player,
    Activator, Animate, Browser Changer,
    FakeClockUp, Icon Renamer,
    iFile,
    iSH****, OpenSSH

    [B]

  6. #5
    iPF Noob
    Member #
    224342
    Join Date
    Jul 2012
    Posts
    1
    Hi,I am chinese,my english is not good,and i encount a question:
    I followed you teaching ,and i successfully installed the .deb file on my jailbroken device,but it can not run,it just show a while,and then disappeared. can you tell me the reason,thank you ,if you know the reason,can you send to me. thanks very much!

    [Moderator edit: Removed link to e-mail address. Please read our rules. Thanks.]
    Last edited by Mickey330; 07-06-2012 at 06:10 AM.

  7. #6
    iPF Noob
    Member #
    267839
    Join Date
    Dec 2012
    Location
    中国
    Posts
    1
    Quote Originally Posted by zerozhu View Post
    Hi,I am chinese,my english is not good,and i encount a question:
    I followed you teaching ,and i successfully installed the .deb file on my jailbroken device,but it can not run,it just show a while,and then disappeared. can you tell me the reason,thank you ,if you know the reason,can you send to me. thanks very much!

    [Moderator edit: Removed link to e-mail address. Please read our rules. Thanks.]


    Hi, zerozhu, Have you worked it out? I encountered the same problem as you did. If you found the solution, could you tell me too? Thanks in advance.

  8. #7
    iPF Noob
    Member #
    285018
    Join Date
    Mar 2013
    Location
    USA
    Posts
    6
    Hi jsherk. You put such a informative information about how to create your on app fora jailbreak iPad. You define GUI application example but I'm not getting your 6 point. When I Run make package install, at that time error will be occurred, can you please recommended it or give me solution of it.


Home | Forum | Active Topics | What's New

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. How to create DRM PDF or eBooks for iPad
    By tonuscdc in forum iPad General Discussions
    Replies: 4
    Last Post: 05-24-2011, 03:40 PM
  2. Create New Folder in PDF Expert on the iPad
    By jerliz in forum iPad General Discussions
    Replies: 2
    Last Post: 03-12-2011, 02:10 PM
  3. Create New Blog From IPad
    By Sidecar in forum iPad General Discussions
    Replies: 6
    Last Post: 01-01-2011, 06:25 AM
  4. iPad Used to Create Art, but not how you might expect...
    By pallentx in forum iPad General Discussions
    Replies: 3
    Last Post: 11-22-2010, 09:59 PM
  5. How do i create folders on Ipad
    By roses in forum iPad Help
    Replies: 4
    Last Post: 09-01-2010, 07:18 PM

Search tags for this page

how to compile app for jailbroken ipad
,

how to create a jailbreak app

,
how to create jailbreak apps
,

how to develop jailbreak applications mail

,

how to make a jailbreak app

,

how to make jailbreak apps

,
how to make jailbroken apps
,
make jailbreak apps
Click on a term to search for related topics.

Tags for this Thread