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

Installing Xcode and the iOS SDK

Xcode is Apple's premier (and free for all OS X users) integrated development environment to develop Mac, iPad, iPhone, and iPod Touch applications. Additionally, the iOS SDK comes bundled with Xcode upon installation. Since the Xcode application's release cycle closely matches that of the Mac and iOS platforms, you as a developer can expect to always have access to the tools needed to develop applications that target the latest iOS platforms.

Although Xamarin Studio 5 comes bundled with its own interface builder, this tool only supports storyboard development as of the time this was written. Xcode provides an interface builder to create graphical user interfaces for iOS and Mac development using storyboards as well as XIB files. Also, the package includes Instruments, which is a graphical user interface tool for application performance analysis and visualization. We will discuss Instruments more in Chapter 7, Testing and Debugging.

Note

If you do not intend to develop iOS applications, you may skip this section for now and come back to it whenever you're ready. However, you will not be able to install Xamarin.iOS or Xamarin.Mac until Xcode and the iOS SDK have been installed.

Installing Xcode from the App Store

To install Xcode, perform the following steps:

  1. Open the App Store from the Dock or Finder.
  2. If you have not already done so, log in by navigating to Store | Log In and entering your credentials.
  3. If you are visiting the App Store for the first time, you will need to create an account. For details on creating an App Store account, see the Apple support documentation at http://support.apple.com/kb/HT4479.
  4. In the spotlight, type xcode and begin the search.
  5. Select the Xcode Developer Tools app and then click the Install App button. This will begin the download and initial installation process, as shown in the following screenshot:

Tip

Xcode is not a simple application, and the initial download is just over 2 GB in size. Therefore, depending on your connection speed, you may need to wait for some time. If you get bored and want to see how things are progressing, hover over launchpad in the Dock and you will see the current download/installation progress. Alternatively, you can open launchpad and view the progress there as well.

Installing Xcode manually

On the other hand, if you don't have an App Store account or for some reason you don't want to use one for this purpose, you can also download the Xcode installer manually from https://developer.apple.com/xcode/.

Perform the following steps to download Xcode manually:

  1. When you arrive at the download page, you will see the Download Xcode 5 for free. section as shown in the preceding screenshot.
  2. Click the View downloads link.
  3. When you reach the program list, type xcode 5 in the search field and hit Enter.
  4. Your search results should include the latest Xcode 5 installer, as shown in the following screenshot:
  5. Click the download link to the right-hand side of the product description.
  6. Once the download is complete, open the file and continue.
  7. Follow the prompts.

Finishing the Xcode installation

Once the download has completed, we will still need to open Xcode from the launcher to begin to finalize the installation. The steps are as follows:

  1. Open the launcher.
  2. Open Xcode.
  3. Accept Xcode and iOS SDK License Agreement.
  4. When prompted, enter your system credentials to give the installer permission to continue.
主站蜘蛛池模板: 阿克苏市| 海晏县| 伊金霍洛旗| 安义县| 贡觉县| 调兵山市| 类乌齐县| 当涂县| 洛川县| 射阳县| 宾阳县| 星座| 金山区| 铅山县| 蓝山县| 卢龙县| 台东县| 额敏县| 亳州市| 莫力| 久治县| 新密市| 江安县| 达拉特旗| 东宁县| 中牟县| 阳城县| 潍坊市| 崇明县| 太仆寺旗| 三河市| 西和县| 阳江市| 连江县| 新野县| 左云县| 洛川县| 淮北市| 西充县| 舒兰市| 新乡市|