Compiling and Running Programs

Before we go into a detailed explanation of this program, we need to cover the steps involved in compiling and running it. You can both compile and run your program using Xcode, or you can use the Clang Objective-C compiler in a Terminal window. Let’s go through the sequence of steps using both methods. Then you can decide how you want to work with your programs throughout the rest of this book.

Note

Xcode is available from the Mac App Store. However, you can also get pre-release versions of Xcode by becoming a registered Apple developer (no charge for that). Go to http://developer.apple.com to get the latest version of the Xcode development tools. There you can download Xcode and the iOS software development ...

Get Programming in Objective-C, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.