问题描述
成功导出MACOSX_DEPLOYMENT_TARGET = 10.8
对我来说非常有用.当我这样做时,会收到以下消息:
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".
我尝试按照这些说明 github.com/phusion/traveling-ruby/tree/master/osx 但在 XCode -> Developer -> Plaforms -> Mac Platforms -> Developer -> SDKs 我只有 10.10 和 10.9 SDKs.如何成功导出MACOSX_DEPLOYMENT_TARGET = 10.8
?
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
?
推荐答案
您可以使用10.10 SDK为Mac OS X 10.8(甚至对于10.4!)进行编译.
You can compile for Mac OS X 10.8 (even for 10.4!) using the 10.10 SDK.
导出MACOSX_DEPLOYMENT_TARGET = 10.8
,请忽略(无用的)警告.
export MACOSX_DEPLOYMENT_TARGET=10.8
is all you need, ignore the (useless) warning.
这篇关于在OSX 10.10上下载10.8 SDK/设置MACOSX_DEPLOYMENT_TARGET = 10.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!