为什么我的 xcode 构建总是转到 iPad 模拟器而不是 iPhone 模拟器?

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

Why do my xcode builds always go to the iPad simulator instead of the iPhone simulator?

iphonexcodecocoaipad

提问by Ryan Waggoner

I just installed the latest SDK from Apple so I can start learning iPhone / iPad app development. However, I'm having a stupid issue: all my builds get run in the iPad simulator instead of the iPhone simulator, and I have no idea how to change it.

我刚刚安装了 Apple 的最新 SDK,所以我可以开始学习 iPhone/iPad 应用程序开发。但是,我遇到了一个愚蠢的问题:我所有的构建都在 iPad 模拟器而不是 iPhone 模拟器中运行,我不知道如何更改它。

回答by chrissr

On your build selector dropdown, (where you select device or simulator), there's now a new option that lets you choose the "Active Executible." Choose "iPhone Simulator."

在您的构建选择器下拉菜单中(您选择设备或模拟器),现在有一个新选项可让您选择“活动可执行文件”。选择“iPhone 模拟器”。

alt text http://img.skitch.com/20100227-qyadm4ktn3abr3j44upkufjieh.jpg

替代文字 http://img.skitch.com/20100227-qyadm4ktn3abr3j44upkufjieh.jpg

回答by rpetrich

For now, the iPhone Simulator 3.2 SDK is iPad-only. Test using the iPhone Simulator 3.1.2 SDK

目前,iPhone Simulator 3.2 SDK 仅适用于 iPad。使用 iPhone Simulator 3.1.2 SDK 进行测试

edit: as of the upcoming 4.2 SDK, the iPhone and iPad versions of iOS have been unified under a single SDK.

编辑:从即将发布的 4.2 SDK 开始,iOS 的 iPhone 和 iPad 版本已统一在一个 SDK 下。