Xcode/Simulator: How to run older iOS version?

前端 未结 9 530
梦如初夏
梦如初夏 2020-12-07 08:54

I\'m thinking of upgrading to iOS SDK 4.2. But what I\'m wondering is if I\'ll still be able to run the simulator as iOS 3.2. This is because I\'m creating iAds for iPad but

相关标签:
9条回答
  • 2020-12-07 09:13

    Open xcode and in the top menu go to xcode > Preferences > Downloads and you will be given the option to download old sdks to use with xcode. You can also download command line tools and Device Debugging Support.

    enter image description here

    0 讨论(0)
  • 2020-12-07 09:15

    XCODE 10.1

    1. Goto Xcode -> Preferences (Shortcut CMD,)

    2. Select Components

    3. Download Simulator version

    4. XCode -> Open Developer Tool -> Simulator This will launch Simulator as stand alone application

    5 Hardware -> Device -> Manage Devices...

    6. Click on + iCon to create new simulator version.

    7. Specify Simulator Name, Device Type and Choose OS version from drop down.

    8. Click Create.

    9. Hardware -> Device -> iOS 11.0 -> iPhone 6

    Thats it run enjoy coding!

    0 讨论(0)
  • 2020-12-07 09:16

    To add previous iOS simulator to Xcode 4.2, you need old xcode_3.2.6_and_ios_sdk_4.3.dmg (or similar version) installer file and do as following:

    • Mount the xcode_3.2.6_and_ios_sdk_4.3.dmg file
    • Open mounting disk image and choose menu: Go->Go to Folder...
    • Type /Volumes/Xcode and iOS SDK/Packages/ then click Go. There are many packages and find to iPhoneSimulatorSDK(version).pkg
    • Double click to install package you want to add and wait for installer displays.
    • In Installer click Continue and choose destination, Choose folder...
    • Explorer shows and select Developer folder and click Choose
    • Install and repeat with other simulator as you need.
    • Restart Xcode.

    Now there are a list of your installed simulator.

    0 讨论(0)
  • 2020-12-07 09:18

    Choosing older simulator versions is not obvious in Xcode 3.2.5. Older Xcodes had separate lists of "iOS Device SDKs" and "iOS Simulator SDKs" in the "Base SDK" build setting popup menu, but in Xcode 3.2.5 these have been replaced with a single "iOS SDKs" list that only offers 4.2 and "latest".

    If you create a new default iOS project, it defaults to 4.2 for both Base SDK and Deployment Target, and in the "Overview" popup in the project's top-left corner, only the 4.2 Simulator is available.

    To run an older iOS simulator, you must choose an older iOS version in the "iOS Deployment Target" build setting popup. Only then will the "Overview" popup offer older Simulators: back to 4.0 for iPhone and to 3.2 for iPad.

    0 讨论(0)
  • 2020-12-07 09:21

    To anyone else who finds this older question, you can now download all old versions.

    Xcode -> Preferences -> Components (Click on Simulators tab).

    Install all the versions you want/need.

    To show all installed simulators:

    Target -> In dropdown "deployment target" choose the installed version with lowest version nr.

    You should now see all your available simulators in the dropdown.

    0 讨论(0)
  • 2020-12-07 09:24

    In XCode under Targets, right-click on your project and Get Info. Under the Build tab look for iOS Deployment Target. By changing this you should be able to test different iOS version.

    alt text

    0 讨论(0)
提交回复
热议问题