带有 SDK 4.2 的 Xcode 始终启动 iPad 模拟器

发布于 2024-10-04 16:20:13 字数 145 浏览 0 评论 0原文

为什么 Xcode 在更新到 SDK 4.2 后总是在 iPad Simulator 而不是 iPhone 中运行我的应用程序??? 如果我选择 iPhone Simulator 作为活动可执行文件,它不会存储我的首选项,并在任何新的构建和运行后运行 iPad 模拟器。跑步。

Why does Xcode, after updating to SDK 4.2, always run my application in iPad Simulator instead of iPhone???
If I select iPhone Simulator as active executable it doesn't store my preference and runs the iPad simulator after any new Build & Run.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

Oo萌小芽oO 2024-10-11 16:20:13

我有同样的问题。但更新后突然消失了。您是否拥有所有软件的最新版本(或尝试将其关闭然后再次打开)?

如果这不起作用,我建议重新安装。解决了我的很多问题...

I had the same Problem. But suddenly after an Update it disappeared. Do you have the newest Version of all Software( or tried turning it off and on again)?

If that doesn't works, I would suggest a reinstall. Solved many of my Problems...

滴情不沾 2024-10-11 16:20:13

在 XCode 3.2.6 上,您可以转到“Project”菜单 -> “设置活动可执行文件”并选择 iPhone Simulator。

On XCode 3.2.6, you can go to "Project" menu -> "Set Active Executable" and select iPhone Simulator.

尝试构建 -> “清理所有目标”。进入发布配置,编译,然后返回调试。现在您可以选择Iphone Simulator。对我来说它有效。

希望这有帮助。

Try to Build -> 'Clean All Targets'. Go into Release configuration, compile and then back to Debug. Now you can choose Iphone Simulator. For me it works.

Hope this help.

豆芽 2024-10-11 16:20:13

检查活动可执行文件设置以及模拟器的“设备”设置。

Check the Active Executable setting, as well as the Simulator's setting for "Device."

傲娇萝莉攻 2024-10-11 16:20:13

检查您的 .xcodeproj 信息。在那里导航并找到模拟器的设置并选择“iPhone”或“iPad”

希望这有帮助

Check your .xcodeproj info. Navigate yourself in there and locate Simulator's Settings and choose 'iPhone' or 'iPad'

Hope this helps

南…巷孤猫 2024-10-11 16:20:13

从管理器的设备列表中删除所有 iPad 设备(“窗口菜单”>“管理器”)为我解决了这个问题。但我知道这不是一个完美的解决方案。我希望苹果能尽快解决这个问题。

Removing all iPad devices from the device list in the organizer (Window Menu > Organizer) fixed it for me. But i know that's not a perfect solution. I hope Apple will fix this soon.

宣告ˉ结束 2024-10-11 16:20:13

你的机器上有两个xcode(或iphone sdk)安装吗? 完全卸载 xcode

sudo /Developer/Library/uninstall-devtools –mode=all

如果是,则使用此命令从所有位置

(将 Developer 替换为已安装的目录名称) ,并在开发人员目录中安装 xcode 3.2.6

do yo have two xcode (or iphone sdk) installation on your machine? if yes then completely uninstall the xcode using this command -

sudo /Developer/Library/uninstall-devtools –mode=all

from all the locations (replace Developer with installed directory name)

and install the xcode 3.2.6 in developer directory

旧梦荧光笔 2024-10-11 16:20:13

您可以前往产品->目的地-> iPhone 6.1 模拟器

我花了一段时间才弄清楚原因,因为即使您在Targets中选择了设备iPhone,如果您不更改目标,它仍然会打开iPad模拟器您的产品。

You can go to Product -> Destination -> iPhone 6.1 Simulator.

It took me a while to figure out the reason, because even though you select the Device iPhone in Targets, it still opens the iPad emulator if you don't change the destination of your product.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文