Open GoogleCodeExporter opened 9 years ago
I forgot to say:
mark@cougar bash$ xcodebuild -version -sdk /SDKs/MacOSX10.6.sdk
ProductBuildVersion
xcodebuild: error: SDK "/SDKs/MacOSX10.6.sdk" cannot be located.
mark@cougar bash$ ls -l /SDKs/MacOSX10.6.sdk
total 8
drwxr-xr-x 4 root wheel 136 Jul 26 2011 Developer
drwxr-xr-x 3 root wheel 102 Dec 5 2011 Library
-rw-r--r-- 1 root wheel 1291 May 29 2012 SDKSettings.plist
drwxr-xr-x 3 root wheel 102 Aug 24 2011 System
drwxr-xr-x 9 root wheel 306 May 29 2012 usr
Original comment by mark@chromium.org
on 23 Sep 2013 at 8:45
Hm, isn't this more that the sdk is set to a path? Does `xcodebuild -version
-sdk macosx10.6 ProductBuildVersion` work?
Original comment by thakis@chromium.org
on 23 Sep 2013 at 9:23
mark@cougar bash$ xcodebuild -version -sdk macosx10.6 ProductBuildVersion
xcodebuild: error: SDK "macosx10.6" cannot be located.
The official bots set the SDK by path as I recall because Xcode doesn’t know
about it by any symbolic name. That’s the whole reason we have mac_sdk_path
support in common.gypi.
Paths should work as arguments to -sdk:
mark@cougar bash$ xcodebuild -version -sdk /SDKs/MacOSX10.8.sdk
ProductBuildVersion
12D75
Original comment by mark@chromium.org
on 24 Sep 2013 at 4:06
What does the Xcode-written Info.plist contain as value for the DTSDKBuild key?
Original comment by thakis@chromium.org
on 24 Sep 2013 at 4:29
Using this .gyp file:
{
'targets': [
{
'target_name': 'test',
'type': 'executable',
'mac_bundle': 1,
'sources': [
'test.c',
],
'xcode_settings': {
'INFOPLIST_FILE': 'Info.plist',
'SDKROOT': '/SDKs/MacOSX10.6.sdk',
},
},
],
}
and xcodebuild from Xcode 5.0 5A1413, here is everything that gets written to
Info.plist:
<key>BuildMachineOSBuild</key>
<string>12F37</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>5A1413</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>10K549</string>
<key>DTSDKName</key>
<string>macosx10.6</string>
<key>DTXcode</key>
<string>0500</string>
<key>DTXcodeBuild</key>
<string>5A1413</string>
The most likely file that contains the string 10K549 in the SDK is
System/Library/CoreServices/SystemVersion.plist’s ProductBuildVersion.
macosx10.6 likely just comes from SDKSettings.plist’s CanonicalName.
Original comment by mark@chromium.org
on 24 Sep 2013 at 2:10
Original issue reported on code.google.com by
mark@chromium.org
on 23 Sep 2013 at 8:43