低于6.0的iPhone Simulator版本不再出现在Xcode 4.5方案下拉列表中 [英] iPhone Simulator versions below 6.0 no longer appear in Xcode 4.5 scheme drop down

查看:59
本文介绍了低于6.0的iPhone Simulator版本不再出现在Xcode 4.5方案下拉列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新手问题.在使用Xcode 4.5.3学习《 Objective-C》和《 Objective-C第四版编程》一书时,我进入了最后一章,其中构建了两个iPhone应用程序.在构建应用程序之前,我下载了iOS模拟器4.1、5.0和5.1.

Newbie questions. While learning Objective-C using Xcode 4.5.3 and the book Programming In Objective-C 4th edition, I have reached the final chapter in which two iPhone apps are built. Before building the apps I downloaded iOS simulators 4.1, 5.0 and 5.1.

当我构建第一个简单的iphone应用程序时,我能够在方案中选择iphone 5.0模拟器.当我构建第二个更复杂的应用程序时,我试图将默认为iPhone 6.0模拟器的方案改回iphone 5.0模拟器,只是发现下拉菜单中不再有低于6.0的模拟器可用.

When I built the first simple iphone app I was able to select iphone 5.0 simulator in the scheme. When I built the second, more complex app I tried to change the scheme which had defaulted to iPhone 6.0 simulator back to iphone 5.0 simulator only to find that that no simulator below 6.0 is available in the drop down any longer.

耸了耸肩,允许在6.0模拟器中启动我的应用程序,我发现在模拟器中没有一行按钮正确显示.该行显示在另一行的顶部,其标签为空白或-".该项目的xib完全根据本书的说明以视觉方式创建,因为我尚不知道如何以编程方式对用户界面进行编码.

Having shrugged my shoulders and allowed the launch of my app in the 6.0 simulator I found that one row of the buttons do not display properly in the simulator. This row appears on top of another row with their labels blank or '-'. The xib for this project was created entirely visually according to the book's instructions as I do not yet know how to programatically code the user interface.

我有两个问题:

  1. 如果方案菜单中不再提供该方案,如何在iPhone 5模拟器中测试该应用程序;
  2. 为什么iphone 6.0模拟器无法类似于xib?

推荐答案

首先,请确保已为5.0和5.1下载了Simulator,为此,请转到"Xcode-> Preferences-> Downloads",然后你会在那里看到它.

First of all, be sure that you have the Simulator downloaded for 5.0 and 5.1, for this, go to "Xcode -> Preferences -> Downloads", and you will see it there.

如果有它们,则下一步是检查项目是否已在那些版本中部署.为此,转到项目属性(在项目导航器中单击项目),然后在信息"选项卡中检查"iOS部署目标"属性.

If you have them, the next step is to check that your project is deployed in those versions. For this, go to your project properties (click in the project in the project navigator) and check the Property "iOS Deployment Target" in the Info tab.

下一步,在同一屏幕中,单击目标,然后检查选项卡"Build Settings",然后检查属性"Base SDK",以查看您所在的iOS版本.

Next step, in the same screen click in your target and check the tab "Build Settings", and check the property "Base SDK" to see which iOS version you have there.

让我知道怎么回事!

这篇关于低于6.0的iPhone Simulator版本不再出现在Xcode 4.5方案下拉列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆