11

XCode 3.2.3 Beta does not allow building for below 3.2.

I opened a project that was made in an earlier XCode. For some reason, the base SDK is reported as missing even after changing it to 4.0. Other projects from earlier XCode do not have this issue.

What can I do?

Moshe
  • 57,511
  • 78
  • 272
  • 425

4 Answers4

17

If you can't choose the SDK at the top left of x-code you have to first set the base SDK in the project settings. Project -> Edit Project Settings. Then choose the "General" tab. At the bottom you can choose "Base SDK for all Configurations:"

Nishant Tyagi
  • 9,893
  • 3
  • 40
  • 61
  • Normally this would work. However, projects ported from XCode in the iOS 3.x SDK to the iOS 4 SDK may not show the base SDK option. In that case you will, like me, have to follow Evadne Wu's answer. – Moshe Jun 27 '10 at 20:15
12

Happy to hear it worked!

Editing the .pbxproj in your .xcodeproj might help. In the XCBuildConfiguration section there are values for SDKROOT.

Moshe
  • 57,511
  • 78
  • 272
  • 425
Evadne Wu
  • 3,190
  • 1
  • 25
  • 25
0

This question has more details on the situation: Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs

Community
  • 1
  • 1
C Pirate
  • 444
  • 3
  • 7
0

I found I had to edit the Base SDK setting for each of the different build configurations, then the error went away. You need to fix "Release", "Debug" and any others.

Daniel O
  • 2,810
  • 3
  • 28
  • 35