How to build for Mac OS X 10.6 SDK in Xcode versions that don't include it

若如初见. 提交于 2019-12-21 02:33:25

问题


My Xcode only allows me to select Mac OS X 10.7 as the earliest Base SDK. Is it possible to install additional base SDKs?


回答1:


I found an old version of Xcode 4.3 on one of my backup disks and dragged a copy of:

/Developer/SDKs/MacOSX10.6.sdk

to:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk

It now sits along side the MacOSX10.7.sdk and MacOSX10.8.sdk, which were already there. They came with Xcode 4.4.

I'm running Xcode Version 4.4 (4F250) and OS X 10.8.

After restarting Xcode, remember to go into build settings and set the Base SDK to OS X 10.6 if it defaulted to "Current OS X" and your project requires the 10.6 sdk.




回答2:


Is there a reason you need the 10.6 SDK? If you set the deployment target to 10.6, you can use the 10.7 SDK and your app will run on 10.6, assuming you're not using anything added in 10.7.



来源:https://stackoverflow.com/questions/9621859/how-to-build-for-mac-os-x-10-6-sdk-in-xcode-versions-that-dont-include-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!