iPhone Simulator versions below 6.0 no longer appear in Xcode 4.5 scheme drop down

自作多情 提交于 2019-12-08 10:17:27

问题


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.

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.

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.

I have two questions:

  1. How do I test this app in the iPhone 5 simulator if this scheme is no longer available in the scheme menu;
  2. Why does the iphone 6.0 simulator fail to resemble the xib?

回答1:


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.

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.

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.

Let me know how it goes!




回答2:


This is in answer to my second question: Why does the iphone 6.0 simulator fail to resemble the xib?

Autolayout. Once this option is unticked, display is as expected.



来源:https://stackoverflow.com/questions/13452566/iphone-simulator-versions-below-6-0-no-longer-appear-in-xcode-4-5-scheme-drop-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!