Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
165 views
in Technique[技术] by (71.8m points)

cocoa - How to add base SDK for 10.5 in xCode 4

I've installed xCode 4 last night and tried to compile a software which should support 10.5 and above OSs.

It gave the error message "Base SDK missing". I found that 10.5 base SDK is no longer in the menu.

Is there any way to get that base SDK? Is there any get around for this problem?

Thanks in advance.

question from:https://stackoverflow.com/questions/5378518/how-to-add-base-sdk-for-10-5-in-xcode-4

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Dropping the 10.5 SDK is also a problem for software which does not use Xcode for the build system, but expects (perhaps foolishly) for specific SDKs to be in place.

To add the SDK back, I re-installed the MacOSX10.5.pkg from the Xcode 3.2.6 download. It is in a hidden folder named "Packages" on the disk image. After mounting the .dmg file, you can open it from the command line with open /Volumes/Xcode and iOS SDK/Packages/. When installing the package, choose change install location and option-click on the drive you want to install to, so that you can specify a folder. The target folder should be /Developer or the base of your Xcode 4 install if you have put it in a non-standard location.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...