xcode 在模拟器中测试多个 iOS 版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3925407/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:49:57  来源:igfitidea点击:

Testing multiple iOS versions in Simulator

iphoneobjective-ccocoa-touchxcodeios4

提问by Sheehan Alam

How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well.

如何在模拟器中测试多个 iOS 版本?我似乎只能测试 iOS 4.1。我也希望能够在模拟器中测试 3.x 版本。

采纳答案by willcodejavaforfood

Cocoa with Love has a good poston how to do this

Cocoa with Love 有一篇关于如何做到这一点的好帖子

To allow simulation in 3.1.3, you must install an old version of Xcode. If you are a registered iPhone developer, you can download Xcode 3.1.4 for Leopard with iPhone SDK 3.1.3 or Xcode 3.1.4 for Snow Leopard with iPhone SDK 3.1.3. Be careful to install these in a different location to your Xcode 3.2.3 with iOS3.2/iOS4 (either select a different hard disk or rename your existing /Developer directory before you install).

要允许在 3.1.3 中进行模拟,您必须安装旧版本的 Xcode。如果您是注册的 iPhone 开发人员,您可以下载 Xcode 3.1.4 for Leopard with iPhone SDK 3.1.3 或 Xcode 3.1.4 for Snow Leopard with iPhone SDK 3.1.3。小心将它们安装在与 iOS3.2/iOS4 不同的位置,而不是你的 Xcode 3.2.3(在安装之前选择不同的硬盘或重命名现有的 /Developer 目录)。

回答by GendoIkari

In the "hardware" menu are options to change the device and the version.

在“硬件”菜单中有更改设备和版本的选项。

回答by Samuel

You can install several version of SDK in different path.

您可以在不同的路径中安装多个版本的 SDK。

To download an older SDK : http://iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html

下载旧版 SDK:http: //iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html