tags:

views:

7116

answers:

5

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?

+7  A: 

Happy to hear it worked! I’ll post this as an answer.

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

Evadne Wu
+10  A: 

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

Paul Hennekam
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
thanks! I had same problem and this was the solution! +1
David Menard
A: 

Evadne's answer helped me also, thx!!!!!!!!!!!!!!

A: 

"Editing the .pbxproj in your .xcodeproj might help. In the XCBuildConfiguration section there are values for SDKROOT." Where I can find .pdxproj ? I am new to xcode and tryin to understand through one old project.

itska
yup. got it. ctrl-click on xcode porject file.
itska
A: 

Search for file named project.pbxproj in your app project folder

Audix