Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift Cookbook

You're reading from   Swift Cookbook Over 50 hands-on recipes to help you create apps, solve problems, and build your portfolio of projects in Swift

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784391379
Length 392 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting Started with Xcode and Swift FREE CHAPTER 2. Standard Library and Collections 3. Using Structs and Generics 4. Design Patterns with Swift 5. Multitasking 6. Playground 7. Swift Debugging with Xcode 8. Integrating with Objective-C 9. Dealing with Other Languages 10. Data Access 11. Miscellaneous Index

Downloading the Xcode image

The second way of installing Xcode is by downloading an image from the Apple Developer Center; this step is not free, it's only available to members of the Apple Developer Program (which costs approximately $99 a year) or for people who work in companies that are members of this program.

Getting ready

For this recipe, you will need to have 2.2 gigabytes of free space besides the space stored by the installed Xcode, but I will assume that you won't have this problem.

The advantage of downloading a DMG file is that you can save it onto a DVD as a backup (you never know when this version of Xcode will be removed from the App Store). Also, if you work in a team, it is very important to have every member working with the same Xcode version. Also, if you want to install any beta version of Xcode, it will only be available through the Apple Developer Center.

How to do it...

To download the Xcode image, follow these steps:

  1. The first step is to open your web browser; go to http://developer.apple.com, log in where it says Member Center. If you are a member of more than one team, it will ask you which account you want to use. Choose the most appropriate one.
  2. After this, you will see a table with some options, choose iOS Dev Center or Mac Dev Center.
    How to do it...

    Tip

    You can download Xcode from iOS Dev Center, even if you are going to use it for OS X development or vice versa

  3. After downloading the DMG file, double-click on it and drag the Xcode icon into your Application folder. Remember that you need the administrator's permission to copy files into the Applications folder.
    How to do it...
  4. You can also install Xcode onto a different path like your home directory, but I wouldn't recommend this if it's not necessary.

Tip

Don't search for download swift on your search engine as there is another programming language that is also called Swift, which has nothing to do with Apple devices.

How it works...

The DMG file ensures that you can always have a backup of this Xcode version, so if for any reason, you have problems with future versions of Xcode, you can install the previous version. It is also possible to have more than one Xcode version installed onto your computer.

There's more...

The Apple Developer Center is a good website to get Xcode resources. Here, you can find videos, guides, code samples, and addons.

You have been reading a chapter from
Swift Cookbook
Published in: Apr 2015
Publisher:
ISBN-13: 9781784391379
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image