xcode 如何下载 iPad Mini 模拟器

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

How to download iPad Mini simulator

iosxcodeipadios-simulator

提问by Harshil Kotecha

I want to test my application on iPad mini screen in Xcode 8.2, but I could not find the simulator for the same.

我想在 Xcode 8.2 的 iPad mini 屏幕上测试我的应用程序,但我找不到相同的模拟器。

I have also tried to add simulator Hardware > Device > click bottom add menubut here I do not see any option to download the iPad mini simulator. There is no option for iPad mini (image here)

我还尝试添加模拟器 硬件 > 设备 > 单击底部添加菜单,但在这里我没有看到任何下载 iPad mini 模拟器的选项。 iPad mini 没有选项(图片在这里)

回答by russbishop

By popular demand, Xcode now includes the iPad mini Simulator. It is not created by default, but you can use the Xcode Devices & Simulators window or xcrun simctlfrom the command line to create one.

应大众需求,Xcode 现在包含 iPad mini Simulator。它不是默认创建的,但您可以使用 Xcode Devices & Simulators 窗口或xcrun simctl从命令行创建一个。

For example, to create an iPad mini 4 simulator with Xcode 11.2:

例如,要使用 Xcode 11.2 创建 iPad mini 4 模拟器:

xcrun simctl create "iPad mini 4" com.apple.CoreSimulator.SimDeviceType.iPad-mini-4 com.apple.CoreSimulator.SimRuntime.iOS-13-2

xcrun simctl create "iPad mini 4" com.apple.CoreSimulator.SimDeviceType.iPad-mini-4 com.apple.CoreSimulator.SimRuntime.iOS-13-2

回答by Akshar Patel

I don't know about the earlier releases but you can do this on Xcode 10.2.1(or later)

我不知道早期版本,但您可以在 Xcode 10.2.1(或更高版本)上执行此操作

Select Add Additional Simulators...from the active scheme:

Add Additional Simulators...从活动方案中选择:

enter image description here

在此处输入图片说明

Then press +to create new Simulator and select iPad miniin Device Type:

然后按+创建新模拟器并iPad mini在设备类型中选择:

enter image description here

在此处输入图片说明

回答by Dialogue

To test apps for the iPad mini in the simulator, run your app on a simulated iPad with the corresponding type of display, either Retina or non-Retina, depending on the iPad mini model. developer.apple.com

要在模拟器中测试适用于 iPad mini 的应用程序,请在具有相应显示器类型(Retina 或非 Retina)的模拟 iPad 上运行您的应用程序,具体取决于 iPad mini 型号。 developer.apple.com