Xcode5.1 offline download installation and use of IOS5 Simulator for development and debugging methods

Source: Internet
Author: User

Xcode5.1 default does not support the IOS5 version of the simulator development debugging, under OS X Mavericks (10.9.x) By default can only support iOS6.1 and above version of the emulator, in OS X Mountain Lion (10.8.x) under the default can only support iOS6.0 and above version of the simulator for development and debugging, under this condition, the version can only use hardware device for development debugging. Although there are fewer iOS devices now, there are times when customer needs may require us to be compatible with IOS5 (or earlier versions) and above, if we can't find a low-version hardware device for debugging or fully use a hardware device without a corresponding emulator version to debug, It would be inconvenient for us to develop and debug, the following from the Xcode5.1 related software offline download, installation and how to use the Xcode5.1 default does not support the low version of the simulator for development debugging to be introduced. This article is a summary of the author's own practice, hoping to help everyone, but without official confirmation by Apple, only as a reference for readers, any reliance on the problems caused by this article by the reader's own responsibility. This article is original, reprint please explain the source! Original address: http://blog.csdn.net/forestml2008/article/details/21714259

1. Xcode5.1 and related software offline

Sometimes using download tools is faster than downloading Xcode and related software directly, which is available offline:

Baidu Network Disk:
Http://pan.baidu.com/s/1ntrzAAH

Xcode5.1 (you need to sign in with your Apple ID to download):
Http://adcdownload.apple.com/Developer_Tools/xcode_5.1/xcode_5.1.dmg

Command line Tools (OS X Mavericks) for Xcode5.1 (you need to sign in with your Apple ID to download):
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 need to sign in with your Apple ID to download):
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. Installation of the iOS simulator

Xcode5.1 default supported iOS simulator online installation is relatively simple, just start Xcode5.1 after opening menu xcode->preferences ... Then click on Downloads to see the components that correspond including Xcode5.1 default supported iOS version simulator, if installed, then the corresponding line will show a check mark, if not installed, only need to click on the following download arrow identification, Xcode5.1 will automatically download and install the corresponding components, because the need to download and install, may need to wait a long time to complete the next Load and installation. In addition, the downloaded temporary files are stored in the/users/<username>/library/caches/com.apple.dt.xcode/downloads directory.

This is mainly illustrated by the offline installation of the iOS7.0 simulator, and other versions and so on:

After downloading IOS_7_0_SIMULATOR.DMG, open the DMG file, you can see the installation package iphonesimulatorsdk7_0.pkg, install the installation package using the installer, the default will be installed in the selected partition/platforms/ iphonesimulator.platform/developer/sdks/ IPHONESIMULATOR7.0.SDK directory, copy or move the entire directory that you just installed IPHONESIMULATOR7.0.SDK to/applications/xcode.app/contents/after you completely exit Xcode5.1 Developer/platforms/iphonesimulator.platform/developer/sdks directory, restart Xcode5.1 can be used to develop and debug the corresponding version of the simulator.

An easy way to install offline is to copy the previously installed version of Xcode, such as Xcode5.0.2, which is already installed on the iOS emulator, and the directory location is the same, all in xcode.app/contents/developer/. Platforms/iphonesimulator.platform/developer/sdks inside. This will not be necessary to download the offline installation package. By the way, if you want to use an earlier version of the SDK (Xcode5.1 default comes with the SDK is iOS7.1) to compile, you can also use this direct copy, but the directory is slightly different, the directory where the SDK is xcode.app/contents/developer/ Platforms/iphoneos.platform/developer/sdks, If the SDK that is Xcode5.0.2 by default is iOS7.0.3, if you copy the SDK from the Xcode5.0.2 (DMG file or the already installed Xcode.app application) to the SDK directory below Xcode5.1, the iOS project settings in Xcode5.1 can be To select the Base SDK for iOS7.1 you can also choose iOS7.0 to compile the project.

Online installation can only install Xcode5.1 default supported iOS emulator version, OS x Mavericks (10.9.x) The minimum version is Ios6.1,os x Mountain Lion (10.8.x) under the minimum version is iOS6.0, to be installed under this version, need to adopt the method of offline installation.

However, the offline installation is not able to install and run all the low-version simulators, tested, OS X Mavericks (10.9.x) The minimum iOS simulator version that works after offline installation is ios6.0,ios5.1 and iOS5.0 emulator can be installed offline, but does not work properly, it will prompt the iOS SDK does not support the simulator, The author also does not know whether there is a solution, if the reader has a solution, welcome advice, but the author uses the iOS5.0.1 version of the IPHONE4 hardware device for debugging is not a problem, that is, in OS X Mavericks (10.9.x) use Xcode5.1 to use only hardware devices for versions below iOS6.0 and cannot be debugged using emulators. OS X Mountain Lion (10.8.x) the minimum iOS emulator version that works after offline installation is iOS5.0, and the version authors below are not tested.

So if you want to develop and debug compatible iOS5 under Xcode5.1, it's best to use the OS X Mountain Lion System.

The above is the author's practical Summary to facilitate the installation of Xcode5.1 and the use of IOS5 simulator for development and debugging.

As for how to create a project to support IOS5 on Xcode5.1, you can refer to the following article:

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.