Skip to main content

XCode/Simulator: How to run older iOS version?


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 I still want to check if my program will run with iOS 3.2.



Note: I have seen a similar post to this in the past, but they weren't really helpful in giving the exact steps in how this could be done.



Thanks in advance!


Source: Tips4allCCNA FINAL EXAM

Comments

  1. If you have iAds in your binary you will not be able to run it on anything before iOS 4.0 and it will be rejected if you try and submit a binary like this.

    You can still run the simulator from 3.2 onwards after upgrading.

    In the iPhone Simulator try selecting Hardware -> Version -> 3.2

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

    Xcode -> Preferences -> Downloads.

    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.

    ReplyDelete
  3. 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.

    ReplyDelete
  4. 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.

    ReplyDelete
  5. 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.

    ReplyDelete
  6. The simulator CANNOT be downloaded from:

    Xcode -> Preferences -> Downloads

    Only the iOS devices symbols. As this option says:


    This package includes information and symbols that Xcode needs for
    debugging your app on iOS devices running versions of iOS prior to iOS
    4.2. If you intend to debug your app on a device running one of these versions of iOS you should install this package.


    That is, you need an iOS 4.2 device to test an iOS 4.2 application

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex