如何停止将Xcode 3.2.6默认设置为iPad Simulator?这是新行为吗? [英] How can I stop Xcode 3.2.6 defaulting to the iPad Simulator? Is this new behaviour?

查看:111
本文介绍了如何停止将Xcode 3.2.6默认设置为iPad Simulator?这是新行为吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎每次我启动Xcode项目或清除所有目标"时,Active Executable都会重置到iPad模拟器.

It seems like every time I launch an Xcode project or 'Clean all Targets' the Active Executable resets to the iPad simulator.

在Xcode 3.2.6发行版之前,Xcode默认使用iPhone模拟器,或者记得我以前的Active Executable ...我从来没有注意到这种现象,因为我通常会使用iPhone.这一直困扰着我最新的Xcode更新(iOS 4.3版本),并且真的令人恼火.

Prior to the Xcode 3.2.6 release Xcode was defaulting to the iPhone Simulator or remembered my previous Active Executable... I've never noticed this behaviour because I generally do iPhone work. This has been bothering me sine the latest Xcode update (iOS 4.3 release) and is really irritating.

类似的问题/答案建议将我的Target的"Targeted Device Family"设置为"iPhone"-已完成.

Similar questions/answers suggest setting the 'Targeted Device Family' of my Target to 'iPhone' - this has been done.

这是新行为吗?

总有没有更改默认的"Active Executable"(活动可执行文件)?

Is there anyway to change the default 'Active Executable'?

推荐答案

我尝试了一些选项,最后我发现了一种解决方法,该解决方法并非默认用于iPad模拟器,但它使用SDK4.2,并且始终默认返回至iPhone 4.2模拟器.

I tried some options and at the end I figured out a workaround that doesn't default to iPad simulator, but it uses SDK4.2 and always defaults back to the iPhone 4.2 Simulator.

我希望它也可以在您的计算机上使用,也许sdk4.2对您来说已经足够了.

I hope this works on your machine too and maybe sdk4.2 is good enough for you.

  1. Option-单击构建配置概述菜单(或它的真名)
  2. 选择iOS Simulator 4.2作为Active SDK
  3. 选择iPhone Simulator 4.2作为活动可执行文件
  4. 构建
  5. 清洁/重新打开/任何内容
  6. 重新构建,iPhone模拟器应已启动.

正如我所说,它使用SDK4.2,但是恕我直言,与每次打开/清理/...项目时切换到iPad模拟器相比,使用SDK4.2更好.

As I said, it uses SDK4.2, but imho it's better to use SDK4.2 than to switch to the iPad simulator each time you open/clean/... the project.

为设备编译后(将sdk切换为基本sdk),您必须重做解决方法.

After you've compiled for the device (which switches the sdk to the base sdk) you have to redo the workaround.

Afaik并没有针对此问题的真正解决方案.它以不同的形式存在超过6个月.在我使用当前的xcode3版本之前,它一直都在切换回iPhone模拟器.对于其他用户,它默认为iPad.

Afaik there is no real solution for the problem. It exists in different variants for more than 6 months. Until the current xcode3 version for me it was switching back to iPhone simulator all the time. For other users it was defaulting to iPad.

apple dev论坛中有十多个线程.他们都没有提供解决方案甚至解决方法.

There are more than a dozen threads in the apple dev forums. None of them offers a solution, or even a workaround.

您应该在 bugreport.apple.com 处提交错误,并祈祷xcode3不被视为结尾生活.

You should file a bug at bugreport.apple.com and pray that xcode3 isn't considered end of life.

这篇关于如何停止将Xcode 3.2.6默认设置为iPad Simulator?这是新行为吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆