在 OSX 10.10 / set MACOSX_DEPLOYMENT_TARGET=10.8 上下载 10.8 SDK
download 10.8 sdk on OSX 10.10 / set MACOSX_DEPLOYMENT_TARGET=10.8
成功export MACOSX_DEPLOYMENT_TARGET=10.8
对我很有用。当我这样做时,我收到这条消息:
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 SDK。我怎样才能成功export MACOSX_DEPLOYMENT_TARGET=10.8
?
您可以使用 10.10 SDK 编译 Mac OS X 10.8(甚至是 10.4!)。
export MACOSX_DEPLOYMENT_TARGET=10.8
就是你所需要的,忽略(无用的)警告。
成功export MACOSX_DEPLOYMENT_TARGET=10.8
对我很有用。当我这样做时,我收到这条消息:
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 SDK。我怎样才能成功export MACOSX_DEPLOYMENT_TARGET=10.8
?
您可以使用 10.10 SDK 编译 Mac OS X 10.8(甚至是 10.4!)。
export MACOSX_DEPLOYMENT_TARGET=10.8
就是你所需要的,忽略(无用的)警告。