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

  • Learning Xamarin Studio
  • William Smith
  • 565字
  • 2021-09-03 10:01:22

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.
主站蜘蛛池模板: 洛阳市| 枣庄市| 唐河县| 惠东县| 五河县| 曲麻莱县| 凌云县| 仪征市| 保靖县| 陵川县| 莱州市| 恩施市| 聂荣县| 长子县| 汨罗市| 洛川县| 安西县| 和静县| 临湘市| 翁源县| 普安县| 灵武市| 都安| 新昌县| 吉首市| 海盐县| 彰化县| 深水埗区| 监利县| 扎赉特旗| 连江县| 乌拉特中旗| 涿州市| 嵊泗县| 喀喇| 武城县| 涞源县| 壤塘县| 那坡县| 山西省| 合作市|