官术网_书友最值得收藏!

Setting up your development environment

Learning a new development environment can be a roadblock. Luckily, Apple provides some excellent tools for iOS developers. We will start our journey by installing Xcode.

Introducing Xcode

Xcode is Apple's Integrated Development Environment (IDE). You will need Xcode to create your game projects, write and debug your code, and build your project for the App Store. Xcode also comes bundled with an iOS simulator to test your game on virtualized iPhones and iPads on your computer.

Note

Apple praises Xcode as "an incredibly productive environment for building amazing apps for Mac, iPhone, and iPad."

To install Xcode, search for xcode in the App Store or visit http://developer.apple.com and click on the Xcode icon. Please note the version of Xcode you are installing. At the time of writing, the current version of Xcode is 6.3.2. Swift is continually evolving and each new Xcode release brings syntax changes to Swift. For the best experience with the code in this book, use Xcode 6.3.x (with Swift version 1.2).

Note

Apple announced Xcode 7 and Swift 2 at WWDC 2015, but it is still in Beta at the time of writing. It looks like there will be some minor syntax changes. The knowledge and techniques in this book will still apply.

Xcode performs common IDE features to help you write better, faster code. If you have used IDEs in the past, then you are probably familiar with auto-completion, live error highlighting, running and debugging a project, and using a project manager pane to create and organize your files. However, any new program can seem overwhelming at first. We will walk through some common interface functions over the next few pages. I have also found tutorial videos on YouTube to be particularly helpful if you are stuck.

主站蜘蛛池模板: 仁怀市| 伊宁县| 班戈县| 长兴县| 寻甸| 大荔县| 石城县| 从江县| 嘉义市| 两当县| 丹棱县| 荃湾区| 吉安县| 巢湖市| 治县。| 修武县| 永春县| 永春县| 大安市| 含山县| 铜山县| 兴城市| 江城| 德江县| 南丹县| 裕民县| 措美县| 桃源县| 赣州市| 留坝县| 鹰潭市| 任丘市| 盐边县| 锡林郭勒盟| 五寨县| 贡嘎县| 莱州市| 安康市| 辛集市| 夏津县| 荥经县|