Installing Xcode 4 and the iOS 5 SDK (iPad)

From Techotopia
Jump to: navigation, search
PreviousTable of ContentsNext
Joining the Apple iOS 5 Developer ProgramCreating a Simple iPad iOS 5 App


Purchase the fully updated iOS 10 / Swift 3 / Xcode 8 edition of this book in eBook ($19.99) or Print ($45.99) format.
iOS 10 App Development Essentials Print and eBook (ePub/PDF/Kindle) edition contains over 100 chapters. Learn more...

Buy eBook Buy Print Preview Book


iPad apps are developed using the iOS SDK in conjunction with Apple’s Xcode 4.3 development environment. The iOS SDK contains the development frameworks that were outlined in iOS 5 Architecture and Frameworks. Xcode 4.3 is an integrated development environment (IDE) within which you will code, compile, test and debug your iOS iPad applications. The Xcode 4.3 environment also includes a feature called Interface Builder which enables you to graphically design the user interface of your application using the components provided by the UIKit framework.

In this chapter we will cover the steps involved in installing both Xcode 4 and the iOS 5 SDK on Mac OS X.

Identifying if you have an Intel or PowerPC based Mac

Only Intel based Mac OS X systems can be used to develop applications for iOS. If you have an older, PowerPC based Mac then you will need to purchase a new system before you can begin your iPad app development project. If you are unsure of the processor type inside your Mac, you can find this information by opening the Finder and selecting the About This Mac option from the Apple menu. In the resulting dialog check the Processor line. Figure 6-1 illustrates the results obtained on an Intel based system:


The Mac OS X "About this Mac" dialog

Figure 6-1


If the dialog on your Mac does not reflect the presence of an Intel based processor then your current system is, sadly, unsuitable as a platform for iPad iOS app development.

In addition, the iOS 5 SDK with Xcode 4.3 environment requires that the version of Mac OS X running on the system be version 10.7.3 or later. If the “About This Mac” dialog does not indicate that Mac OS X 10.7.3 or later is running, click on the Software Update… button to download and install the appropriate operating system upgrades.

Installing Xcode 4 and the iOS 5 SDK

The best way to obtain the latest versions of Xcode 4.3 and the iOS SDK is to download them from the Apple iOS Dev Center web site.

In order to download Xcode 4.3 with the iOS 5 SDK, you will either need to be a member of the iOS Developer programs or purchase a copy from the Mac App Store.

The download is over 3.5GB in size and may take a number of hours to complete depending on the speed of your internet connection.


Starting Xcode 4

Having successfully installed the SDK and Xcode 4, the next step is to launch it so that we can write and then create a sample iPad application. To start up Xcode, open the Finder and search for Xcode. Since you will be making frequent use of this tool take this opportunity to drag and drop it into your dock for easier access in the future. Click on the Xcode icon in the dock to launch the tool.

Once Xcode has loaded, and assuming this is the first time you have used Xcode on this system, you will be presented with the Welcome screen from which you are ready to proceed:


The Xcode 4.2 weclome screen

Figure 6-4


Having installed the iOS 5 SDK and successfully launched Xcode 4 we can now look at Creating a Simple iPad iOS 5 App.


Purchase the fully updated iOS 10 / Swift 3 / Xcode 8 edition of this book in eBook ($19.99) or Print ($45.99) format.
iOS 10 App Development Essentials Print and eBook (ePub/PDF/Kindle) edition contains over 100 chapters. Learn more...

Buy eBook Buy Print Preview Book



PreviousTable of ContentsNext
Joining the Apple iOS 5 Developer ProgramCreating a Simple iPad iOS 5 App