14

The scheme 'PrintingWebView' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64-bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.

enter image description here

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
小弟调调
  • 1,315
  • 1
  • 17
  • 33
  • So, what SDK(s) are your target(s) set to use? – Peter Hosey Apr 23 '12 at 01:16
  • I do not know how to set up.I want to run the test. – 小弟调调 Apr 23 '12 at 01:22
  • 1
    You can't run anything in this project until you can build it. Select the project object in the Project Navigator, then select each of your targets and look at the target's Build Settings to see what SDK it's set to use. Make sure each target is set to an SDK that you have. – Peter Hosey Apr 23 '12 at 01:25
  • oh,thanks 。The old version is no way to run !Right – 小弟调调 Apr 23 '12 at 01:33
  • Just fixed by [THIS POST](http://stackoverflow.com/questions/5319251/xcode-4-the-selected-run-destination-is-not-valid-for-this-action). – Kjuly Jan 05 '13 at 06:10

3 Answers3

27

I've met with this problem. In my case, the following steps can solve it:

your project -> target -> Build Setting

Modify following items: 1.Base SDK ; 2.Architectures ; 3.iOS Deployment Target.

And then clean and build the application.

Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
biaobiaoqi
  • 1,098
  • 12
  • 18
  • answer helped me a lot. thank you. I also had to change the compiler to "Default Compiler (Apple LLVM compiler 4.1)" – JohannesRu Feb 05 '13 at 12:07
  • @biaobiaoqi. Thank you. You were right. i built keycastr application. ![Base SDK ](http://i.stack.imgur.com/eDQz0.png) – 0x8BADF00D Oct 05 '13 at 04:06
  • This helped me so much, thank you. I downloaded some example project code from mac-devs and I've spent hours tweaking compiler options and linking sources to try to build it. I feel stupid now though, for something so simple. – lukecampbell Dec 07 '13 at 16:02
  • I'd also like to add scrolling down to deployment target and make sure you have your minimum iOS version on there... mine was set to 7.1 and my device was 7.0.3 so I was getting this message. – Albert Renshaw Apr 01 '14 at 04:46
2

Try this simple one:

Target 
   '---> General 
             '---> Deployment Info  
                          '---> Deployment Target 
                                     '---> Choose Version (Better lower version)
Rajesh Loganathan
  • 11,129
  • 4
  • 78
  • 90
0

Above answer is right. I was doing one silly mistake, my application was specifically for iPad, and i was mistakenly trying to build on iPhone simulator, and got this error. Make sure, to deploy on relevant device as well.

Muhammad Asad
  • 1,013
  • 13
  • 11