download 10.8 sdk on OSX 10.10 / set MACOSX_DEPLOYMENT_TARGET=10.8

半腔热情 提交于 2019-12-13 06:03:13

问题


It would be very useful to me to successfully export MACOSX_DEPLOYMENT_TARGET=10.8. When I do that, I get this message:

CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but the matching SDK does not exist at: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/‌​SDKs/MacOSX10.8.sdk" Instead using SDK: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/‌​SDKs/MacOSX10.10.sdk".

I tried following these instructions github.com/phusion/traveling-ruby/tree/master/osx but in XCode -> Developer -> Plaforms -> Mac Platforms -> Developer -> SDKs I only have the 10.10 and 10.9 SDKs. How can I successfully export MACOSX_DEPLOYMENT_TARGET=10.8?


回答1:


You can compile for Mac OS X 10.8 (even for 10.4!) using the 10.10 SDK.

export MACOSX_DEPLOYMENT_TARGET=10.8 is all you need, ignore the (useless) warning.



来源:https://stackoverflow.com/questions/31359687/download-10-8-sdk-on-osx-10-10-set-macosx-deployment-target-10-8

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