
Displaying the Output Windowīefore we go through Xcode’s build and run phases, we first need to configure Xcode so we can see can actually see the output from our application. We’re not going to go through the contents of the file just now (it’s the subject or our next post), but use the Edit Area to look for the following line: World!") Īnd then change it to: iOS Development Tutorials!")Ĭongratulations, you’ve edited your first Objective-C source code! Now lets get setup for building and running it. The Xcode Edit Area should update to display the contents of the file. If you haven’t done so already, make sure you’ve got the main.m file selected in the Navigator Area. I know it looks pretty daunting but you can ignore all of this for now. Once done Xcode will display its Xcode Workspace Window and a scary list of options for your project. Xcode will now run-around in the background and create a load of files that make up your new project. Leave the Create local git repository for this project check box selected and then select Create. I created a new folder within my home directory called Projects that I’ll use for all my Xcode projects. On the next screen browse to where you want to store the new application. Make sure the project Type is set to Foundation and make sure the check box for Use Automatic Reference Counting is selected. Don’t worry if you haven’t got a web address of your own. The convention is to enter your websites address in reverse (e.g. For the Company Identifier, enter something that should be globally unique if you can. In the upper-right pane then select Command-Line Tool followed by Next.Įnter HelloiOSDevTutorials as the Product Name.Įnter your name for the Organization Name. In the Mac OS X section left-hand pane select Application. As an alternative you can select File > New > New Project… from the menu at the top of your screen. To create a new Objective-C project select Create a New Xcode Project from the Welcome Screen.

Once loaded Xcode will show you a Welcome Screen similar to the picture below: Head over to your applications folder and start Xcode. Create Your First Objective-C Application All set? Lets get on with creating our first Objective-C application.

The Four Phases of Implementing an Objective-C Program.How to Install the Xcode Development Tools.I’ve already written detailed posts on all of these so if you’ve not done so already, open a new tab in your browser and read through the steps in the following posts. You’ll also need to have a basic understanding on the steps that we will go through in implementing an Objective-C application. Create Your First Objective-C Applicationīefore you can do any real development in Objective-C and iOS you’ll need to get hold of the latest version of the development tools and you’ll probably want to register with Apple as a developer.
