Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is no SDK with the name or path "iphoneos4.0"

Tags:

iphone

I download a sample of UICatalog and run it.When I compile it ,it shows the failed message:There is no SDK with the name or path "iphoneos4.0".I find the "Base SDK" of UICatalog's Targets is iphone Device 4.0(missing).How can I solve this question and run it.

Thank you!

like image 882
lqf Avatar asked Aug 03 '10 01:08

lqf


2 Answers

Select the root level of the project, in "Groups & Files". It's blue. Then hit command-I to get its Info.

Pick "Build" from the segmented controller at the top of the info window. In the first section of that panel you'll see Base SDK as one of the first few lines of options. Select the latest version of the SDK you find in there, and close the window to save your options.

Build-and-run the project, and you should be good to go.

EDIT, because I see from the comments that people are finding this answer who have a slightly different question than the OP's, so here's one other thing to try. It could also be you have "iOS Device" selected as your build target. If so, and if what you really want is for it to launch into the simulator, select "Simulator" instead.

like image 155
Dan Ray Avatar answered Jan 01 '23 21:01

Dan Ray


After loading the project into XCode..

Under Groups and Files

  1. right click on UICatalog<-(or your demo project name) and select Get Info

  2. in Base SDK select IOS Simulator 4.1

  3. Close and save info pane

  4. expand Targets exposing UICatalog<-(or demo project name)

  5. right click on UICatalog and select Get Info

  6. in Base SDK select IOS Simulator 4.1

Combo box in UICatalog project pane (upper left corner) should switch to "Device - 4.1 | Debug" instead of "No Base SDK"

if you Build and Run at this point you might get another error. If so, open the UICatalog combo and switch from Device to Simulator

The "official link" mentioned above states…

"Note: Targets can override build settings defined at the Project level. "

..but should probably read "will" instead of "can"

like image 26
Larry Avatar answered Jan 01 '23 22:01

Larry