Join Simon Allardice for an in-depth discussion in this video Installing Xcode and the iOS SDK, part of iOS 8 App Development with Swift 1 Essential Training.
- I'm going to spend the next four minutes or so making sure everybody's on the same page regarding the necessary tools and the various Apple Developer programs that are relevant here. Now, if you're an old hand at this, feel free to skip ahead or just tag along for the ride. It won't take long. So, you want to make an iPhone or an iPad app. Maybe you've got a great idea. Maybe you've got a half-formed idea. Maybe you simply want to check this all out. Well, first things first, you are going to need a Mac. In case you're not completely clear on this, the Apple development tools are not cross-platform.
You have to have a Mac, though it doesn't have to be anything special. Any Mac produced in the last four or five years will be more than capable. And that Mac should be running OS X Mavericks or Yosemite, and being on the latest operating system is highly recommended when you're developing on an Apple platform. But if you've got a Mac running Mavericks or Yosemite, as far as the hardware requirement go, we are completely ready for iOS development. Because technically, you don't actually need an iPhone or an iPad to write iOS applications.
There is a simulator in the developer tools. Now, realistically, I expect you have one or the other or both, or even several, so that you can test an app on an actual device. But before we get there, we need the development tools. And that's Xcode 6. And you can get Xcode from the Mac app store and it's free. I am assuming most of you have it already, but if you haven't, now's the time. You'll find Xcode in the Developer Tools section of the app store. This one download is about 2.5 gigabytes.
The reason that it's so big is it's not just Xcode. It's Xcode bundled together with a bunch of other programs and tools, compilers and analyzers, supporting files, the iPhone and iPad simulators, the SDKs, or software development kits for iOS and OS X, which simply means everything you need for creating iOS apps and Mac desktop apps, business applications, games, all in one download. It's all here. Now some of the content in this download you may never need and may never care about, but you need to just go ahead and download it all anyway.
After this is installed, you will find Xcode in you normal Applications folder. I'm just going to drag it to my dock here, so I have a shortcut to it. And the final test, of course, is can you open Xcode? Now, the first time that you do, you're likely to get a message, or even several, asking you to install some necessary components, which you will need to do. And once Xcode is open, my welcome screen here tells me I've got version 6.1, so we're good. Now Apple puts out updates to Xcode frequently, usually every two or three months, so you could well have a later version than I do.
That's fine, I'm a big believer in always having the latest official release, but because of that, you may see some small differences between what I'm recording and what you see. Part of being an Apple Developer is rolling with those frequent incremental changes. What you don't want is any earlier version than mine. This course focuses on iOS development with Swift for iOS 8, and you need Xcode 6 for that. It can't be done with Xcode 5.
Author Simon Allardice also covers the dos and don'ts of iOS 8 interface development, techniques for connecting UI elements to code, and tips for making flexible layouts that display correctly on different screen sizes. The last chapter shows you how to add app icons and launch screens and prep your app for submission to the App Store.
- Installing Xcode and the iOS SDK
- Joining the iOS Developer Program
- Using MVC in iOS
- Creating basic interaction
- Using first responders
- Exploring delegation
- Connecting UI elements to code
- Working with foreground and background events
- Creating and customizing table views
- Exploring storyboards
- Understanding the differences in iPad development
- Altering views and constraints, with size classes
- Adding application icons and launch images