本文介绍了无法使用Xcode 4构建 - 所选运行目标对此操作无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我很可怕的这个错误,Stack Overflow的其他线程提到我应该设置SDK,但我没有看到没有选择这样做。我正在尝试构建:http://wafflesoftware.net/shortcut/

So I'm horribly confused by this error, other threads on Stack Overflow mention I should set the SDK, but I see no option to do this. I'm trying to build:http://wafflesoftware.net/shortcut/

我没有选择,我只能选择我的Mac 64位,我想要它在32位。真的开始讨厌Xcode 4。

And I get no options, and I can only choose My Mac 64-bit, and I want it in 32-bit. Really beginning to hate Xcode 4.

这是我试图编辑我的方案时的屏幕截图:

Here is the screenshot when I try to edit my scheme: http://groovyape.com/scheme.png

想法?

推荐答案

首先,我注意到当Xcode 4决定我的Mac是64位,所有其他方案已经消失,重新启动Xcode修复了。

Firstly, I have observed that when Xcode 4 decides my Mac is 64 bit and all my other schemes have vanished, a restart of Xcode fixes that.

如果在重新启动后仍有问题,请转到管理方案...(在产品菜单下),然后单击立即自动创建方案按钮。尝试删除其他方案,看看是否可以立即运行该项目。

If you still have the issue after a restart, go to Manage Schemes... (under the Product Menu) and click on Autocreate Schemes now button. Try to delete the other schemes and see if you can run the project now.

但是,如果问题是您需要设置SDK,则不同:

However, if the issue is that you need to set the SDK, that's different:


  1. 点击左侧面板中的顶级项目图标


  2. 选择全部选项(而不是组合)

  3. 确保Base SDK设置正确,像OS X 10.7。

  1. Click on the top-level project icon in the left hand panel
  2. In the right hand panel that appears, select Build Settings (near the top).
  3. Select "All" option (instead of Combined)
  4. Ensure Base SDK is set appropriately, like "OS X 10.7".

FWIW我正在认真考虑恢复到Xcode 3.2.5的时候, 。

FWIW I'm seriously considering reverting to Xcode 3.2.5 at the moment, 4 seems horrendously buggy.

这篇关于无法使用Xcode 4构建 - 所选运行目标对此操作无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 03:56