Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The selected run destination is not valid for this action

Tags:

xcode

ios

target

I have opened a project that has always been iphone/ipad. I can't build it now because for some reason my only "Scheme" option is "MyApp My Mac 64-bit". How can I get this set back to iphone/ipad simulator and devices? My "Targeted Device Family" setting is iPhone/iPad.

like image 715
sol Avatar asked Mar 15 '11 23:03

sol


3 Answers

I had that issue several times. Basically, just set the Base SDK in Build Settings to Latest OS X and it should work properly.

like image 157
fabrice truillot de chambrier Avatar answered Oct 23 '22 11:10

fabrice truillot de chambrier


I ran in to this issue recently and i solved it by changing the value of the executable from "None" to "AppName.app" on xcode.

You should change:

Product > Edit scheme -> Run AppName.app -> Info tab -> Executable -> None

to:

Product > Edit scheme -> Run AppName.app -> Info tab -> Executable -> AppName.app

like image 69
iruleonu Avatar answered Oct 23 '22 10:10

iruleonu


Have you tried editing the Scheme? (I'm assuming you are running XCode 4). I believe you just might need to set the "Base SDK" setting to "iphoneos" (this translates to "Latest iOS").

like image 19
Scott Corscadden Avatar answered Oct 23 '22 11:10

Scott Corscadden