Skip to Content

iPhone Dev 101: Creating Xcode projects, brief Xcode UI overview

In our last iPhone Dev 101, a continuing series on iPhone development, we talked about resources that you can use while you are coding with Cocoa. In this dev post, I'm going to walk you through Xcode and creating your first project.

First we need to open Xcode, so once you have the SDK installed, you'll need to open /Developer/Applications/ and look for Xcode.app. This is Apple's IDE (Integrated Development Environment) that allows you to code, debug, test, and build all of your iPhone and Mac applications. When you open this application, nothing specially really happens, although you might see the welcome center -- if you see this, you can choose to disable it at startup by using the check box at the bottom.

To create a new project, select File > New Project. In the resulting window select iPhone OS Application > View-based Application, and click "Choose." You will then need to specify a save name and location for the resulting files that will combine to create your application. In the resulting Xcode window, you should note that most of the work is already done for you!

At this point you have a fully functional application. Try it out: click the "build and go" button at the top of the window and wait while the app is compiled and opens in the iPhone Simulator. The app definitely doesn't do much, but still, it's a running application you made without writing any code.

Continue reading to learn more about Xcode, and get a brief UI overview.

If you exit the iPhone Simulator and return to Xcode, you'll notice the application is divided into many sections. In the left side pane you'll see "Groups and Files." This area is where all of your files that correspond to the project are stored; classes, frameworks, and resources can all be seen from here. In the top pane on the right, you'll notice files corresponding to the selected folder on the left. When you click on one of these files, the editor will be revealed in the bottom-right pane -- this allows you to write your code. You can double click on a file to bring up a larger, detached editor window.

Along the toolbar, you'll notice various icons. At the far left, you'll see a drop-down menu with a few options like "Simulator - 2.2.1 | Debug." These are the development SDKs/configurations that you can load. We'll mainly be using the one mentioned above because it allows you to easily compile your code to run in the simulator. When you click the "Build and Go" icon as we did above, this allows you to quickly compile and run your applications in either the simulator, or on the device if you have ad-hoc distribution set up (we'll cover this later).

As you can see, Xcode is like many Mac applications in that the UI is very simple and easy to learn. As we delve into the "Hello World" application in the next post, we'll go into more details about build configurations, and cover some basics with Interface Builder (Apple's UI development environment that ties into Xcode).

In our last iPhone Dev 101, a continuing series on iPhone development, we talked about resources that you can use while you are coding...
 

Add a Comment

*0 / 3000 Character Maximum

6 Comments

Filter by:
webfeathers

thanks! I'm totally following your steps, and building my first iPhone app. I'll post it at http://www.webfeathers.com/iphone when I'm done!

Thanks!
Ron

June 12 2009 at 5:28 PM Report abuse rate up rate down Reply
firmtofu1977

Beauty mate.... keep 'em coming.

March 31 2009 at 10:59 PM Report abuse rate up rate down Reply
o0bix0o

These are pretty sweet, if someone is looking for some more easy walk thrus to get started http://www.napkincode.com has some beginner ones I found helpful.

March 31 2009 at 9:15 PM Report abuse rate up rate down Reply
tekkenshihan

I haven't even read this yet, BUT THANK YOU FOR POSTING IT!

This is just what I needed! I will be looking into this when I get home!

March 31 2009 at 4:08 PM Report abuse rate up rate down Reply
Maddin

I agree. Very basic steps. Very easy to understand, and not to fast.

March 31 2009 at 3:03 PM Report abuse rate up rate down Reply
jonathon Lillie

awesome... I'm enjoying these posts, they are good steps for those of us who want to develop for the iphone but have no experience in coding

March 31 2009 at 2:25 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.