带有 SDK 4.2 的 Xcode 始终启动 iPad 模拟器
为什么 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
我有同样的问题。但更新后突然消失了。您是否拥有所有软件的最新版本(或尝试将其关闭然后再次打开)?
如果这不起作用,我建议重新安装。解决了我的很多问题...
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...
在 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.
检查活动可执行文件设置以及模拟器的“设备”设置。
Check the Active Executable setting, as well as the Simulator's setting for "Device."
检查您的 .xcodeproj 信息。在那里导航并找到模拟器的设置并选择“iPhone”或“iPad”
希望这有帮助
Check your .xcodeproj info. Navigate yourself in there and locate Simulator's Settings and choose 'iPhone' or 'iPad'
Hope this helps
从管理器的设备列表中删除所有 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.
你的机器上有两个xcode(或iphone sdk)安装吗? 完全卸载 xcode
如果是,则使用此命令从所有位置
(将 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 -
from all the locations (replace Developer with installed directory name)
and install the xcode 3.2.6 in developer directory
您可以前往
产品->目的地-> 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
inTargets
, it still opens the iPad emulator if you don't change the destination of your product.