如何在 Xcode 6.3.1 中为 iphone 4/5 添加模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30547474/
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-15 07:13:16  来源:igfitidea点击:

How to I add simulator for iphone 4/5 in Xcode 6.3.1

iosxcode

提问by MilkBottle

I am not sure if i am doing it right. Please help.

我不确定我是否做得对。请帮忙。

To add simulator, goto > windows > devices

要添加模拟器,请转到 > windows > devices

problem:

问题:

1) When I tried to add simulator for iphone 5 or 4 , it show iOS version 8.3

1) 当我尝试为 iphone 5 或 4 添加模拟器时,它显示 iOS 版本 8.3

the dialogbox show :

对话框显示:

Simulator name : iphone 4s
Device Type   : iphone 4s
iOS version    : iOS8.3 

Is this correct? iphone 4s should be using ios lower than ios 8 right?

这样对吗?iphone 4s 应该使用低于 ios 8 的 ios 吧?

How to I do testing for iphone 4/5 using simulator ?

如何使用模拟器对 iphone 4/5 进行测试?

回答by abhishekkharwar

In the Xcode menu, go to Windows > Devices, and at the bottom left click on the +button.

在 Xcode 菜单中,转到Windows > Devices,然后单击左下角的+按钮。

screenshot showing the location of the + button

显示 + 按钮位置的屏幕截图

screenshot showing the create a new simulator dialog

显示创建新模拟器对话框的屏幕截图

回答by Juan Catalan

Xcode 6 only supports iOS 7 and iOS8. You could use iOS 7 for iPhone 4s or iPhone 5, just install the iOS 7.1 simulator from

Xcode 6 仅支持 iOS 7 和 iOS8。您可以将 iOS 7 用于 iPhone 4s 或 iPhone 5,只需从以下位置安装 iOS 7.1 模拟器

Xcode > Preferences > Downloads.

Xcode > 首选项 > 下载。

iPhone 5 and iPhone 4S can be updated to run iOS 8, so it is perfectly ok to test iOS 8 with these phones.

iPhone 5 和 iPhone 4S 可以更新为运行 iOS 8,所以用这些手机测试 iOS 8 完全没问题。

回答by matt

Is this correct? iphone 4s should be using ios lower than ios 8 right?

这样对吗?iphone 4s 应该使用低于 ios 8 的 ios 吧?

It is correct. I have an actual iPhone 4s and it is running iOS 8.3. (In fact, it is my primary development testing device for iOS 8.)

它是正确的。我有一台真正的 iPhone 4s,它运行的是 iOS 8.3。(事实上​​,它是我主要的 iOS 8 开发测试设备。)

You can install earlier simulators, but there is nothing wrong with what you're seeing.

您可以安装较早的模拟器,但您所看到的没有任何问题。

(And yes, this means that in order to develop for iOS 8, you need to support screen sizes ranging from the tiny iPhone 4s to the massive iPhone 6 Plus. Good luck.)

(是的,这意味着为了针对 iOS 8 进行开发,您需要支持从小型 iPhone 4s 到大型 iPhone 6 Plus 的屏幕尺寸。祝你好运。)