iOS

What You Need to Begin iOS Programming


Update: The post is updated to make it compatible with Xcode 5 and iOS 7.

Update #2: You can now refer to this sample chapter of our Beginning iOS 9 Programming with Swift book to learn what you need to start iOS programming.

So far over 600 6000 readers have signed up the free iOS tutorials. First, thanks for those joining our community. Before we begin to talk about iOS programming, let’s go through the tools you need to build your first app.

1. Get a Mac

Yes, you need a Mac. It’s the basic requirement for iOS development. To develop an iPhone (or iPad) app, you need to first get a Mac with Intel-based processor running on Mac OS X version 10.8 (or up). Probably you still own a PC, the cheapest option is to purchase the Mac Mini. The retail price of the entry model is US$599 (if you purchase via Amazon, the used model starts at US$490). You can pair it with the monitor of your PC. The basic model of Mac mini comes with 2.3GHz dual-core Intel Core i5 processor and 4GB memory. It should be well enough to run the iOS development tool smoothly. Of course, if you have more budget, get the higher model or iMac with better processing power.

2. Register an Apple Developer Account

Don’t mix this up with the paid iOS Developer Program that we’re going to talk about in later section. Everyone can register as an Apple developer for free. By registering the developer account, you’re allowed to download Xcode, access documentation of the iOS SDK and other technical resources such as development videos.

You can go to Apple’s developer website for registration. The registration process is very straightforward. Simply create an Apple ID (if you don’t have) and fill in your personal profile.

Sign up App Development Account

3. Install Xcode

To start developing iPhone and iPad apps, Xcode is the only tool you need to download. Xcode is an integrated development environment (IDE) provided by Apple. Xcode provides everything you need to kick start your app development. It already bundles the latest version of iOS SDK (short for Software Development Kit), a built-in source code editor, graphic user interface (UI) editor, debugging tools and many more. Most importantly, Xcode comes with an iPhone (or iPad) simulator so you can test your app even without the physical devices.

Sample Xcode Interface

To download Xcode, launch Mac App Store on your Mac. If you’re using the latest version of Mac OS, you should be able to open the Mac App Store from the icon in the dock. In case you can’t find it, you may need to upgrade the Mac OS.

Mac App Store icon

In the Mac App Store, simply search “Xcode” and click “Free” button to download it.

Download Xcode From Mac App Store

Once you complete the installation process, you’ll find the Xcode folder in the Launchpad.

Xcode in Launchpad

At the time of this writing, the latest version of Xcode is 5.1.1, which adds the support of iOS 7.1. For the upcoming tutorials, they’ll be based on this version. Even you’ve installed Xcode before, I suggest you to upgrade to the latest version if you’re planning to follow our tutorials.

4. Enroll in iOS Developer Program (Optional)

A common question about developing iOS app is whether you need to enroll in the iOS Developer Program. The short answer is “optional”. As mentioned earlier, Xcode already includes a built-in iPhone and iPad simulator. You can develop and test out your app right on your Mac.

Without joining the iOS Developer Program, however, the simulator is the only mean to run your apps. You can’t deploy and test the app on your device. Needless to say, you’re not permitted to submit your app to App Store. In other words, you can’t sell your app!

The simulator is powerful, however, it doesn’t simulate all features of iPhone. For instance, it doesn’t come with the camera or video capture feature. So if you’re building a camera app, the only way is to test it on a real iOS device. In other words, you have to join the iOS Developer Program!

So should you enroll in the program now? The iOS Developer Program costs US$99 per year. If you’re a new comer and just start exploring iOS development, you can rely on the simulator to test out your app first. You can wait until you have a solid plan to distribute your apps on App Store before enrolling in the program.

That’s all for today. Take some time to register your developer account and install Xcode. Once you’re ready, check out the next post and start to build your first app.

Got a question? Leave me a comment or ask it at our AppCoda Community Forum.

iOS
Using Gesture Recognizers to Handle Pinch, Rotate, Pan, Swipe and Tap Gestures
iOS
Introduction to iOS 8 App Extension: Creating a Today Widget
iOS
Customizing Navigation Bar and Status Bar in iOS 7
Subscribe To Our Newsletter

Subscribe To Our Newsletter

Get a free 7-day iOS programming course, plus weekly programming tutorials, tips and freebies.

You have Successfully Subscribed!

Shares