Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to build using Xcode 4 - The selected run destination is not valid for this action

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/

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

Thoughts?

like image 377
Geesu Avatar asked Mar 24 '11 16:03

Geesu


1 Answers

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.

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

  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 I'm seriously considering reverting to Xcode 3.2.5 at the moment, 4 seems horrendously buggy.

like image 174
Roger Avatar answered Sep 24 '22 19:09

Roger