XCode: Base SDK Missing

从xcode里提取一个例子程序,准备编译运行,但是XCode报错 Base SDK Missing

这也没啥,设上就行了呗,project info->general->Base SDK for all configurations,选择最新的iOS SDK.

好,为了保险起见,整个退出xcode.再起。。。还是base sdk missing...如此反复多次还是不行,有点邪门

google之,哦也,http://stackoverflow.com/questions/3034912/xcode-cant-find-base-sdk

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. 

原来从3.x sdk port 来的工程会有问题,上面链接中也给出了解决办法,即修改project.pbxproj,寻找SDKROOT,将它改为正确的sdk版本。

注意debug release两处都要改,然后保存,重启,一切恢复正常了。

你可能感兴趣的:(XCode: Base SDK Missing)