How to Install Older iOS Simulators in XCode 4.2.1 (SDK5.0)

前端 未结 2 1796
梦如初夏
梦如初夏 2020-11-30 04:03

I have just bought a new iMac. I then downloaded the latest SDK 5.0 and installed XCode 4.2.1. Everything is working fine. Though I realized that there are only iPhone and i

2条回答
  •  一向
    一向 (楼主)
    2020-11-30 04:38

    If Xcode doesn't show the wanted simulators you'll be able to download older xcodes from here: https://developer.apple.com/downloads/index.action?name=Xcode

    For example:

    • iOS 5 Simulator -> Xcode 4.3
    • iOS 5.1 Simulator -> Xcode 4.3.3
    • iOS 6 Simulator -> Xcode 4.6
    • iOS 6.1 Simulator -> Xcode 4.6.3
    • iOS 7 Simulator -> Xcode 5
    • iOS 7.1 Simulator -> Xcode 5.1

    You can find the Xcode application inside the downloaded .dmg

    1. Open this DMG
    2. Right click on the Xcode application and click 'Show Package Contents'
    3. Navigate to: Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
    4. Copy the found simulator folder (eg. iPhoneSimulator7.1.sdk folder)
    5. Repeat steps 2 & 3 for your current Xcode application
    6. Paste the simulator folder

    Restarting Xcode will show you the new added simulators

    Happy building & testing!

    Update:
    Tested in xCode 6, working there as well

提交回复
热议问题