如何在新的 XCode 4.5 GM 模拟器中设置 iPhone 5?

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

How can I set the iPhone 5 in simulator in the new XCode 4.5 GM?

iphonexcodeios-simulatoriphone-5xcode4.5

提问by BarryK88

I'm having some troubles with running/testing my App for the new iPhone.

我在为新 iPhone 运行/测试我的应用程序时遇到了一些麻烦。

When running simulator with this newer version of XCode the iPhone 4" is not visible (anymore) under hardware->device.

当使用此较新版本的 XCode 运行模拟器时,iPhone 4" 在硬件-> 设备下(不再)可见。

Did I disabled it or is my XCode broken somehow.

我禁用了它还是我的 XCode 以某种方式损坏了。

EDIT:

编辑:

Somehow my Xcode was not running the latest Beta version when running my App via rightmouseclick XCode 4.5 (even though it was listed).

不知何故,当我通过鼠标右键单击 XCode 4.5 运行我的应用程序时,我的 Xcode 没有运行最新的 Beta 版本(即使它已被列出)。

When running XCode via the install file (.dmg) of the developerportal I was able to run the iPhone 4" (iPhone 5) simulator.

通过 developerportal 的安装文件 (.dmg) 运行 XCode 时,我能够运行 iPhone 4" (iPhone 5) 模拟器。

回答by Lukasz

Download and install Xcode 4.5 (or newer), open your project in it, run in iPhone 6.0Simulator and then:

下载并安装 Xcode 4.5(或更新版本),在其中打开您的项目,在 iPhone 6.0Simulator 中运行,然后:

enter image description here

在此处输入图片说明