Installing Xcode 7 and the iOS 9 SDK

From Techotopia
Jump to: navigation, search
PreviousTable of ContentsNext
Joining the Apple Developer ProgramA Guided Tour of Xcode 7


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


iOS apps are developed using the iOS SDK in conjunction with Apple’s Xcode 7 development environment. Xcode 7 is an integrated development environment (IDE) within which you will code, compile, test and debug your iOS applications. The Xcode 7 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 7 and the iOS 9 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 iOS app development project. If you are unsure of the processor type inside your Mac, you can find this information by clicking on the Apple menu in the top left hand corner of the screen and selecting the About This Mac option from the menu. In the resulting dialog check the Processor line. Figure 3 1 illustrates the results obtained on an Intel based system.

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 iOS app development.

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


Mac os x ios 9 about.png

Figure 3-1

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

Installing Xcode 7 and the iOS 9 SDK

The best way to obtain the latest versions of Xcode and the iOS SDK is to download them from the Apple Mac App Store. Launch the App Store on your Mac OS X system, enter Xcode into the search box and click on the Free button to initiate the installation.


Starting Xcode

Having successfully installed the SDK and Xcode, the next step is to launch it so that we can create a sample iOS 9 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. The first time Xcode runs you may be prompted to install additional components. Follow these steps, entering your username and password when prompted to do so.

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:


Xcode 7 welcome screen.png

Figure 3-2


Adding Your Apple ID to the Xcode Preferences

Regardless of whether or not you choose to enroll in the Apple Developer Program it is worth adding your Apple ID to Xcode now that it is installed and running. Select the Xcode -> Preferences… menu option and select the Accounts tab. On the Accounts screen, click on the + button highlighted in Figure 3 3 and select Add Apple ID… from the resulting menu:


Xcode 7 add apple id.png

Figure 3-3


When prompted, enter your Apple ID and associated password and click on the Add button to add the account to the preferences.

Developer and Distribution Signing Identities

Once the Apple ID has been entered the next step is to generate signing identities. To view the current signing identities, select the newly added Apple ID in the Accounts panel and click on the View Details… button at which point a list of available signing identities will be listed. If you have not yet enrolled in the Apple Developer Program it will only be possible to create iOS and Mac Development identities. To create the iOS Development signing identity, simply click on the Create button highlighted in Figure 3-4:


Xcode 7 signing identities.png

Figure 3-4


If the Apple ID has been used to enroll in the Apple Developer program, the Create button next to the iOS Distribution entry will also be active and, when clicked, will generate the signing identity required to submit the app to the Apple App Store.

Having installed the iOS 9 SDK and successfully launched Xcode 7 we can now look at Xcode in more detail.


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 Developer ProgramA Guided Tour of Xcode 7