Original: Swift language Combat Promotion-1 construction of swift development environment
For Swift to learn, there must be a development environment. Simply put your Xcode mac system in the right way. So let's take a quick look at what's going on here.
1.1 Download Xcode
Xcode is Apple's programming tool, similar to the Microsoft-produced Visual Studio, which writes Java Eclipse and develops flash IDE. So-called 工欲善其事 its prerequisite, so the first thing we need to know is where to download Xcode, there are several ways.
Route One: Via AppStore, download. We open the AppStore and enter "Xcode" in the search box in the upper right corner
Figure 1-1 Opening AppStore
You can see Xcode in the search results.
Figure 1-2 the search for Xcode
Xcode downloaded from AppStore is an official version of Apple's release. If you want the latest version, please look down.
Route two, download from Swift's official blog, the blog's URL is: https://developer.apple.com/swift/blog/after entering the website, click "Resources" can see the latest version of Xcode.
Figure 1-3 Swift Official Blog Download
However, to download Xcode from here, you need an Apple developer account.
Channel Three, from the Apple Developer website into the download, the URL is: https://developer.apple.com/cn/xcode/downloads/Route three and channel two, the need for developer account.
Channel Four, Baidu search to see if there are good people upload for download.
The version of Xcode used in this book is the 6.1 official version, which can be downloaded from AppStore.
1.2 About Mac Operating system
Xcode must be installed in the Mac operating system, the version of the Mac operating system requires 10.9.3 or more, including 10.9.3. Just now we've learned how to get xcode and talk about how to get to Mac OS.
The simplest and most convenient thing is to buy an Apple computer. Mac Book Air,mac book Pro,mac mini etc. all can.
In addition, we can install the Mac operating system with virtual machines under Windows. This is the cheapest. But it's also the most problematic, and the cards are unbearable. There will be a variety of inexplicable problems that no one knows. So using a virtual machine is the least recommended. If you just experience the syntax of Swift's language, try it. Virtual machine installation, we can search the following on Baidu. If you want to be lazy, you can also join the following QQ groups: 8477435, there is a wave of God dedicated a copy of the virtual machine installed Apple operating system documents and virtual machine image files.
In addition to virtual machines, there is a way to install the Mac operating system. That's the legendary black Apple. That is, the Mac OS is installed on non-Apple computers by various means. Both of these ways I have experienced, the black Apple user experience closer to the Apple computer. It's an affordable option if you use an existing computer to pack black apples. But the black Apple is behind the apple, after all, causing the driver to be hard to find, so the installation is quite a bother. Most crucially, not all CPUs can have Mac operating systems installed. For example, AMD's CPU wants to install a Mac system, at least for the time being, there is no need to spend a lot of money to spell this character.
Swift language Combat promotion-1 swift development environment construction