• Home
  • Apple News
  • Jailbreak News
  • Android News
  • Wallpapers
  • Deals

iJailbreak | Jailbreak And iOS News

iJailbreak is an online resource for jailbreak and unlock iPhone, iPad, iPod Touch, Apple TV and iOS news.

  • How To Jailbreak
    • Cydia Installer: Everything You Need To Know
    • What Is Jailbreaking? Why Should I Jailbreak?
    • Untethered vs Tethered vs SemiTethered Jailbreak
  • Jailbreak Software Tools
    • PP Jailbreak
    • TaiG
    • Pangu
    • Evasi0n (Evasi0n7)
    • Absinthe
    • JailbreakMe.com
    • RedSn0w
    • GreenPois0n
    • Sn0wBreeze
    • PwnageTool
    • LimeRa1n
    • Spirit
    • BlackRa1n
    • Seas0nPass
    • Developers
  • How To Unlock
  • How To Downgrade
    • How To Save SHSH Blobs
    • TinyUmbrella
    • iFaith
    • F0recast
  • Cydia Tweaks
    • Top / Best Cydia Tweaks
    • Best Cydia Sources
    • Siri Cydia Tweaks, Hacks, Mods
    • Spire Proxy Host List
  • How To Root
    • Top / Best Custom ROMs
  • Downloads

A Beginners Guide To Getting Started In Cydia Tweak Development

October 1, 2012 by Jaden Easton-Ellett 1 Comment

This weekend at JailbreakCon 2012 the Cydia guru Ryan Petrich took the stage to talk about Cydia tweak development. His presentation’s main focus was actually how to get into Cydia tweak development and how to program Cydia tweaks.

Learn To Program Cydia Tweaks

Last year I wrote an in-depth article on how to develop a Cydia tweak from scratch, but it wasn’t as technical as people hoped for. As such, thanks to Ryan Petrich I was able gather some better resources on how a beginner can start developing software for Jailbroken iOS Devices.

How To Learn Cydia Tweak Programming

Step 1) – The first thing Petrich recommended doing was simply building a sample application in objective-c with UIKit. Essentially just ensuring that you are comfortable with native X-Code development. You can get started with this by purchasing an objective-c book, following online tutorials, or actually taking a course.

Step 2) – When you are comfortable with native iOS development then it is time to Jailbreak your iPhone, iPod Touch or iPad and install SSH. This will allow you access the root filesystem of your device and begin developing Jailbroken software. Visit our How To Jailbreak section for more information.

Step 3) – After Jailbreaking setup DeviceConsole, which is a handy command to view NSLogs and fprintfs outside of Xcode.

Step 4) – Next download and install Theos from Dustin Howett’s Github. Petrich states “it’s an amazing compilation environment that handles building, signing, packaging and installation for you. It even includes a handy transcompiler that makes method hooking really easy.”

A Beginners Guide To Getting Started In Cydia Tweak Development

Step 5) – One of the best ways to actually get started in Cydia tweak development once you have all the required tools is to look at open source examples. A huge library of open source Cydia tweaks can be found from TweakWeek or Petrich’s Github.

Step 6) – Once you are feeling more comfortable from looking at open source examples you will want to also download Class-Dump-Z. This tool by kennytm will allow you to get a peek at all the private APIs that are available under the hood of iOS. It shows everything… no really!

A Beginners Guide To Getting Started In Cydia Tweak Development

Yet another useful tool is Cycript. Petrich states “Cycript is a tool that Jay Freeman has built to make exploratory programming much simpler on iOS. It marries JavaScript with Objective-C syntax and makes testing private APIs or nudging view positions much less cumbersome.” Essentially Cycript is the perfect tool for live-coding on iOS, and it is available in Cydia. You can use the following command to print out a list of all views:

cycript -p SpringBoard
[[UIApp keyWindow] recursiveDescription]

Step 7) – Finally if you are having problems or would like some clarification on things you can reach out to other developers on IRC. Simply join the #iphonedev channel on irc.saurik.com. Don’t forget to also use Google, StackOverflow and The iPhone Dev Wiki to your advantage as well.

There you have it! Hopefully these resources from Ryan Petrich’s JailbreakCon 2012 presentation will be of use. If you have any further resources/suggestions or just need some help please make use of the comments section below.

Comments

  1. Confused says

    November 26, 2012 at 2:47 am

    Cycript is no longer in Cydia. I have looked up the repo and everywhere it says that it is in the Saurik default repo and it has not popped up in the search bar.

Leave a Reply

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

Read Our Most Recent Articles

Untethered iOS 12 Jailbreak Demoed by Ali Security
Untethered iOS 12 Jailbreak Demoed by Ali Security
iOS 12 Now Available for Download: Compatible Devices
iOS 12 Now Available for Download: Compatible Devices
iPhone X Discontinued, iPhone 8 and iPhone 7 Prices Slashed
iPhone X Discontinued, iPhone 8 and iPhone 7 Prices Slashed
Apple iPhone Xs, iPhone Xs Max, and iPhone Xr Announced
Apple iPhone Xs, iPhone Xs Max, and iPhone Xr Announced
Apple Watch Series 4 Announced With Larger Display, Louder Speaker, and More
Apple Watch Series 4 Announced With Larger Display, Louder Speaker, and More

Follow Our How To Guides

How To: Easily Fix iBooks Crash Error On iOS 5.0.1 Untethered With xSellize Repo
How To: Easily Fix iBooks Crash Error On iOS 5.0.1 Untethered With xSellize Repo
How To: Install CPU Sleeper On Sprint Galaxy S3 SPH-L710
How To: Install CPU Sleeper On Sprint Galaxy S3 SPH-L710
How To: Unlock Your Out Of Contract iPhone For Free Using AT&T's Online Chat
How To: Unlock Your Out Of Contract iPhone For Free Using AT&T's Online Chat
How To: Find Out If You Have One Of The 600,000 Mac Computers Infected By Flashback Trojan Virus
How To: Find Out If You Have One Of The 600,000 Mac Computers Infected By Flashback Trojan Virus
Flashing Android 4.1.2 Jelly Bean On Galaxy Tab 7.7 Using The ParanoidAndroid ROM [How-To Guide]
Flashing Android 4.1.2 Jelly Bean On Galaxy Tab 7.7 Using The ParanoidAndroid ROM [How-To Guide]
About | Contact | Advertise | RSS Feed | Sitemap | TOS | Privacy Policy

© Copyright 2010 - 2021 iJailbreak. All Rights Reserved.