Skip to Content
iPhone Open Application Development, 2nd Edition
book

iPhone Open Application Development, 2nd Edition

by Jonathan Zdziarski
October 2008
Beginner to intermediate
268 pages
6h 49m
English
O'Reilly Media, Inc.
Content preview from iPhone Open Application Development, 2nd Edition

Chapter 1. Breaking Into and Setting Up the iPhone

The iPhone is a closed device. We can’t say this enough. Up to and including version 2.x of the iPhone software, users have been locked out of the operating system and developers have been exiled to a tiny sandbox running in user land. This doesn’t seem to deter a majority of iPhone consumers from breaking free from these chains, but does make it more difficult to get started. Before hacking of any kind can take place, the iPhone must be broken free from its jail—literally.

The iPhone’s interfacing with software, such as iTunes, is run in a chrooted environment, where no user or desktop application—even iTunes—can see into the operating system; this is commonly known in the Unix world as a chroot jail. This jail (and the fact that you can’t simply yank out the hard drive) is the only thing standing in the way of the iPhone functioning as a complete, portable Mac OS X computer. Fortunately, many free tools have been written to make the jailbreaking process simple.

In this chapter, you’ll stage your iPhone for software development in such a way that you’ll be able to access files outside this jail, and your applications will be able to run outside of their restrictive sandbox. This includes breaking free from the chroot jail (called jailbreaking) so you can access the filesystem. You’ll also install a BSD Unix world, which is a set of common Unix binaries, such as ls and cp. This allows you to navigate and manage the iPhone’s operating ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

iPhone Open Application Development

iPhone Open Application Development

Jonathan Zdziarski
Programming iOS 13

Programming iOS 13

Matt Neuburg

Publisher Resources

ISBN: 9780596155346Errata Page