简体   繁体   English

iOS模拟器版本

[英]iOS simulator version

I tried Appium iOS tutorial and ran the example successfully. 我尝试了Appium iOS教程并成功运行了该示例。 I noticed the UICatalog6.1.app runs on iOS simulator with title "iPhone 6/iOS 8.2" on the top of the simulator. 我注意到UICatalog6.1.app在iOS模拟器上运行,标题为“ iPhone 6 / iOS 8.2”,位于模拟器顶部。

However the title is "iPhone 6/iOS 9.0" when I run the app developed by myself from Xcode. 但是,当我运行自己从Xcode开发的应用程序时,标题为“ iPhone 6 / iOS 9.0”。 I am wondering which part controls to use different version of iOS simulator? 我想知道哪个部分控件可以使用不同版本的iOS模拟器?

When you install Xcode, you automatically get the most recent version of the simulators. 安装Xcode时,您会自动获得最新版本的模拟器。 However, if you would like to define additional simulators with older iOS versions, you can. 但是,如果您想使用较旧的iOS版本定义其他模拟器,则可以。

In Xcode, go to Window (on the tool bar), and select Devices. 在Xcode中,转到“窗口”(在工具栏上),然后选择“设备”。 There, you can see a list of all of your current devices and all of your currently setup simulators. 在这里,您可以看到所有当前设备以及所有当前设置的模拟器的列表。 If you click the plus on the lower left corner of the screen, you'll get to this screen: 如果单击屏幕左下角的加号,将转到此屏幕:

在此处输入图片说明

Here, you can select the device you'd like to use for the simulator and its iOS version. 在这里,您可以选择要用于模拟器及其iOS版本的设备。 By default, you'll only have the most recent version of iOS, but if you'd like to add older versions, just select 'Download more simulators' and you'll be given the option to download older versions and use them for testing. 默认情况下,您将仅拥有最新版本的iOS,但是如果您想添加旧版本,只需选择“下载更多模拟器”,即可选择下载旧版本并将其用于测试。

Once you've set up the new simulator, you'll be able to select it from the list of available devices to run your app on. 设置新的模拟器后,您就可以从可用设备列表中选择它来运行您的应用了。 Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM