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

Viewed 35979

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!

15 Answers

I got a similar error after upgrading my iPhone to iOS4.2.1(8C148a). The situation is as following.

I was using Xcode 3.2.4, but it does not support iOS4.2.1. So I downloaded Xcode_3.2.5_and_ios-sdk_4.2_final.dmg which is 3.78GB requiring 9.53GB to install. Then I ran my ap with Xcode 3.2.5. That is where I got the above error message.

Now it is ok. I solve this based on Geowar's answer:

Please be noted that if you have done as Geowar said and the message is still there. Try to close Xcode 3.2.5 and restart it. That is how it works for me.

Another thing is that if you have just upgraded to iOS4.2.1 like me. When you try to load the a/p from Xcode 3.2.5 the first time. Xcode 3.2.5 may still give you "No provision iOS device connected". Please try to go to organizer and click on your iPhone under DEVICES on the left bar. Wait for a while to let Xcode in sync with your iPhone with iOS4.2.1. Then it will work. At least it work for me.

Jesse

Ok, so I struggled through this too. Based on some of the answers above and from the apple development forum, I was able to figure out what worked for me.

In XCODE, if you notice that the pull down at the top left of the window says "BASE SDK MISSING", you are going to get this error "There is no SDK with the name or path “iphoneos4.0”". To fix the problem:

  1. double click on Group & Files in the upper part of the left pane of xcode. This will open a window

  2. go to the Build tab of the new window

  3. click on the row that says "BaseSDK" and select "Latest iOS (currently set to iOS 3.2)

  4. The Configurations pull down near the top should now say "All Configurations". If not, set it.

  5. close the window.

  6. Now if you try to build, you will get a different error, something like: Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile ...

  7. So, now what you need to do in xcode is to click on the pull down in the upper left corner (the pull down that had the original BASE SDK MISSING indication, but probably has something different now), and make sure that both "Simulator" and "Debug" are checked as options in the pull-down.

  8. now you should be good to go.

Related