Xcode5.1 how to download and install offline and use the iOS5 Simulator for development and debugging

Source: Internet
Author: User

Xcode5.1 does not support iOS 5 simulator development and debugging by default. By default, OS x Mavericks (10.9.x) only supports iOS and later simulators, and OS X Mountain Lion (10.8.x) by default, only Simulators of iOS6.0 and later are supported for development and debugging. Only the hardware devices can be used for development and debugging. Although there are fewer and fewer iOS devices in earlier versions, customers' requirements may require us to be compatible with iOS5 (or earlier versions) and later versions, if we cannot find a low-version Hardware Device for debugging or use it completely without the corresponding Simulator version for debugging, it is inconvenient for us to develop and debug the device, the following sections describe how to download, install, and debug Xcode5.1 related software offline and how to use the low-version simulators that are not supported by Xcode5.1 by default. The content described in this article is a summary of the practice by the author, hoping to help you, but it is not officially confirmed by Apple and only serves as a reader's reference, readers are responsible for any problems caused by this article. This article is original. For more information, see the source! Address: http://blog.csdn.net/forestml2008/article/details/21714259

1. Xcode5.1 and related software offline

Sometimes it is faster to use a download tool than to directly download Xcode and related software. The following provides offline:

Baidu online storage:
Http://pan.baidu.com/s/1ntrzAAH

Xcode5.1 (you must use the Apple ID to log on before downloading ):
Http://adcdownload.apple.com/Developer_Tools/xcode_5.1/xcode_5.1.dmg

Command Line Tools (OS X Mavericks) for Xcode5.1 (you must log on with an Apple ID before downloading ):
Http://adcdownload.apple.com/Developer_Tools/command_line_tools_ OS _x_mavericks_for_xcode__march_2014/commandline_tools_ OS _x_mavericks_for_xcode__march_2014.dmg

Command Line Tools (OS X Mountain Lion) for Xcode5.1 (you must log on with an Apple ID before downloading ):
Http://adcdownload.apple.com/Developer_Tools/command_line_tools_ OS _x_mountain_lion_for_xcode__march_2014/commandline_tools_ OS _x_mountain_lion_for_xcode__march_2014.dmg

IOS7.0 simulator:
Http://devimages.apple.com/downloads/xcode/simulators/ios_7_0_simulator.dmg

IOS6.1 simulator:
Http://devimages.apple.com/downloads/xcode/simulators/ios_6_1_simulator.dmg

IOS6.0 simulator:
Http://devimages.apple.com/downloads/xcode/simulators/iphone_6_0_iphonesimulatorsdk6_0.dmg

IOS5.1 simulator:
Http://devimages.apple.com/downloads/xcode/simulators/iphone_5.1_iphonesimulatorsdk5_1.dmg

IOS5.0 simulator:
Http://devimages.apple.com/downloads/xcode/simulators/ios_50_simulator-1.dmg

2. Install the iOS Simulator

Xcode5.1 supports online installation of iOS simulators by default. You only need to start Xcode5.1 and then open the menu Xcode-> Preferences... click Downloads to view the corresponding Components in Components, including the default iOS version simulators supported by Xcode5.1. If installed, a check mark is displayed after the corresponding line, if no installation is available, you only need to click the downloading arrow icon next to it. Xcode5.1 will automatically download and install the corresponding components because you need to download and install them, it may take a long time to complete the download and installation. In addition, the downloaded temporary files are stored in the/Users/<username>/Library/Caches/com. apple. dt. Xcode/Downloads directory.

Here, the offline installation of the iOS7.0 simulator is used as an example, and other versions are described as follows:

Download ios_7_0_simulator.dmg and open the dmg file. You can see the installation package iPhoneSimulatorSDK7_0.pkg. Use the installer to install the installation package. By default, the package is installed in/Platforms/iPhoneSimulator of the selected partition. in the platform/Developer/SDKs/iPhoneSimulator7.0.sdk directory, completely exit Xcode5.1 and copy or move the entire directory of the installed iPhoneSimulator7.0.sdk to/Applications/Xcode. app/Contents/Developer/Platforms/iPhoneSimulator. in the platform/Developer/SDKs directory, restart Xcode5.1 to use the corresponding version of the simulator for development and debugging.

There is also a simple way to install the SDK offline. You can copy and use the previously installed version of Xcode, such as Xcode 5.0.2 and iOS simulators. The directories are all in the same directory. app/Contents/Developer/Platforms/iPhoneSimulator. in platform/Developer/SDKs. In this way, you no longer need to download the offline installation package. By the way, if you want to use an earlier version of the SDK (Xcode5.1 comes with the SDK iOS7.1 by default) for compilation, you can also directly copy the SDK, but the directory is slightly different, the SDK directory is Xcode. app/Contents/Developer/Platforms/iPhoneOS. platform/Developer/SDKs. For example, the default SDK of Xcode5.0.2 is iOS7.0.3. If Xcode5.0.2 (dmg file or Xcode already installed) is used. the SDK in the app can be copied to the SDK directory under Xcode5.1. In the iOS Project Settings of Xcode5.1, you can select Base SDK as iOS7.1 or iOS7.0 to compile the project.

Online installation can only install iOS simulators supported by Xcode5.1 by default. The lowest version of OS x Mavericks (10.9.x) is iOS6.1, and the lowest version of OS X Mountain Lion (10.8.x) is iOS6.0, to install the version below, you need to install it offline.

However, offline installation is not able to install and run all low-version simulators. After testing, the lowest iOS Simulator version that can run normally after offline installation in OS X Mavericks (10.9.x) is iOS6.0, both iOS5.1 and iOS5.0 simulators can be installed offline, but cannot run normally. The system prompts that the iOS SDK does not support simulators. The author does not know whether there is a solution. If the reader has a solution, please advise, but there is no problem for the author to debug the iPhone 4 Hardware Device of iOS5.0.1, that is, in OS X Mavericks (10.9.x) when Xcode5.1 is used for versions earlier than iOS6.0, only hardware devices can be used, but not simulators can be used for debugging. After offline installation of OS X Mountain Lion (10.8.x), the lowest iOS Simulator version that can run normally is iOS5.0. The author has not tried the version below.

Therefore, if you want to develop and debug iOS5 compatibility in Xcode5.1, you 'd better use the OS X Mountain Lion system.

The above is a summary of the practices of the author in order to facilitate the installation of Xcode5.1 and the use of iOS5 simulators for development and debugging.

For how to create a project that supports iOS5 on Xcode5.1, refer to the following articles:

Http://blog.csdn.net/xueer8835/article/details/17166615

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.