简体   繁体   English

为什么选择iPhone模拟器时Xcode会启动IPad模拟器?

[英]Why does Xcode launch the IPad simulator when the iPhone simulator is selected?

When I develop my project in Xcode 5.0.2 and "Build and Run" it, it launches the iPad simulator always when I selected iPhone Simulator ? 当我在Xcode 5.0.2中开发项目并“构建并运行”该项目时,总是在选择iPhone Simulator时启动iPad模拟器。 What is going on? 到底是怎么回事? How do I get it to run the iPhone simulator? 我如何获得它来运行iPhone模拟器?

Follow the image sequence and watch the result.. Set the launch target 遵循图像序列并观看结​​果。. 设置启动目标 在此处输入图片说明

在此处输入图片说明

check the launched simulator details... 检查启动的模拟器详细信息... 在此处输入图片说明

These step May Help you for resolving this issue. 这些步骤可能会帮助您解决此问题。

  • First Make Sure Are you sure it is iPad Simulator or the Retina iPhone Simulator ?. 首先确定您确定它是iPad模拟器还是Retina iPhone模拟器? If want to confirm please make sure with this line. 如果要确认,请确保使用此行。

For iPhone (3.5 -inch) Simulator: 对于iPhone(3.5英寸)模拟器:

在此处输入图片说明

For iPhone (4.0 -inch) Simulator: 对于iPhone(4.0英寸)模拟器:

在此处输入图片说明

For iPad Simulator: 对于iPad Simulator:

在此处输入图片说明

  • Make sure your project's Build Settings has iPhone/iPad selected for the Targeted Device Family setting under the Deployment section . 确保项目的“构建设置”已为“ Deployment section下的“目标设备系列”设置选择了iPhone/iPad (As if you try to run iPad project on iPhone will show you this Error - > The run destination iPhone Retina (4-inch) is not valid for Running the scheme 'Test'.) (好像您尝试在iPhone上运行iPad项目将向您显示此错误->运行目标iPhone Retina(4英寸)对于运行方案“测试”无效)。

if None work for you then please try to Quit both Xcode and Simulator . 如果没有适合您的方法,请尝试同时退出XcodeSimulator or you may need to reinstall you Developer Tools Again. 否则您可能需要再次重新安装开发人员工具。

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

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