Thông tin tài liệu:
Cài đặt Công cụ phát triển Xcode Chọn vị trí cài đặt và gỡ bỏ gói nâng cấp Xcode XcodeXcode là một phần của bộ ứng dụng Công cụ phát triển Xcode phát triển và phân phối bởi Apple. Nếu bạn chưa cài đặt nó đã có, đọc chương này để fi thứ ra cách để làm như vậy. Nếu các công cụ đã được cài đặt, bạn có thể nhảy được tới chương kế tiếp.
Nội dung trích xuất từ tài liệu:
Lập trình Wrox Professional Xcode 3 cho Mac OS part 11Installing Xcode WHATS IN THIS CHAPTER? ➤ Installing the Xcode Developer Tools ➤ Choosing the install location and packages ➤ Upgrading Xcode ➤ Removing Xcode Xcode is part of the Xcode Developer Tools suite developed and distributed by Apple. If you haven’t installed it already, read this chapter to fi nd out how to do so. If the tools are already installed, you can skip to the next chapter. If you’ve already installed Xcode, be aware that the default installation choices do not include all Xcode components. Features described in some chapters may require you to reinstall the omitted packages before you can use them. Return to this chapter to reinstall, upgrade, or remove the Xcode Developer Tools in your system. The Xcode Developer Tools encompass a huge amount of material: dozens of applications, scores of utilities, hundreds of sample projects, and thousands of pages of documentations. Despite its scope, the developer tools team at Apple has made it remarkably easy to install this wealth of tools in only a few minutes. Download at getcoolebook.com2 ❘ CHAPTER 1 INSTALLING XCODE THE XCODE INSTALLER To install the Xcode Developer Tools, you must be running Mac OS X and have access to an Xcode Developer Tools installer. At the time this book was published, the current version of Xcode was 3.2, which requires that you be running Mac OS X 10.6 (aka Snow Leopard) or later. This entire book was written with, and assumes you are using, Xcode version 3.2 or later. Although the tools require Mac OS X 10.6 or later to run, you can develop code that ’s compatible with systems as old as Mac OS X 10.4. Some development packages, like the iPhone SDK, may have additional hardware or operating system requirements. The Xcode Developer Tools installer is available from many sources. Many flavors of the Mac OS X operating system installer include a copy of the Xcode Development Tools. Updated versions are occasionally included in the monthly Apple Developer Connection (ADC) DVD for download. First check to see whether you have a recent version of the Xcode developer tools already. The latest version of the Xcode Developer Tools can always be downloaded from the Apple Developers Connection at http://developer.apple.com/. Anyone with an ADC account can download the latest development tools, software development kits, and example code directly from Apple. Online ADC accounts are free and require only that you create an ADC account and agree to the nondisclosure agreement that covers all Apple development technologies. Student, Select, and Premier accounts can be purchased and include many additional benefits. One of these is the monthly ADC mailing, mentioned earlier, which includes regular updates to tools and reference material. Other perks include discounts on hardware used for development and direct access to Apple engineers for technical questions. If you are serious about developing software for Mac OS X or the iPhone OS, you should invest in a paid membership. If you plan to sell your iPhone applications through Apple’s App Store, you must have a paid iPhone developer account. Apple has never made incremental updaters for Xcode. Every version of Xcode ever released has included a complete copy of the entire suite. As such, there is nothing to be gained by installing an earlier version of Xcode and then upgrading it to a later version. Just install the latest version. As of this writing, the Xcode developer tools installer is available in two forms. The Xcode download from the Mac Dev Center includes Xcode and all of the resources needed to develop applications for Mac OS X. The iPhone SDK from the iPhone Dev Center includes the entire Mac OS X suite plus additional tools and frameworks for developing iPhone applications. Installing using the vanilla Xcode download enables you to develop applications for Mac OS X. Installing the iPhone SDK enables you develop both Mac OS X applications and iPhone applications. Download at getcoolebook.com Running the Installer ❘3RUNNING THE INSTALLER To start the installation process, open the XcodeTools or iPhone SDK package. You can fi nd the XcodeTools package in the Optional Installs folder of the Mac OS X install DVD, as shown on the left in Figure 1-1. The iPhone SDK package is in the iPhone SDK disk image, ...