A frequent build error that developers will encounter with XCode development is the “error: There is no SDK with the name or path…” message. This essentially means that when you try to build your project, XCode can’t find the platform or device that it’s supposed to build for. This commonly happens when either the project was built for an SDK more recent than the version compiled (In which case you should upgrade to the latest XCode/iOS SDK builds), or the opposite- the SDK is too recent and you need to modify your project’s build settings to an SDK that you have installed.
If the first is the case, upgrading to the most recent version of the SDK is the solution.
Otherwise, follow these quick steps to update your project’s build settings for the current SDK:
First, go to “Project” -> “Edit Project Settings”
Next, move to the “Build” section and set “Base SDK” to your current SDK (iOS 4.2 in this case).