GNOME Bugzilla – Bug 757357
Fix cerbero config for running on 10.10 using Xcode 7
Last modified: 2015-10-30 15:32:56 UTC
Created attachment 314463 [details] [review] OSX: Use 10.11 SDK path on 10.10, if 10.10 not available Xcode 7 only ships with the 10.11 SDK, and removed the 10.10 SDK. That is also the case when running Xcode on 10.10. Hence cerbero config fails, as it assume to have an SDK for the current OS version available. While one could set osx_target_sdk_version explicitly, I couldn't make this work during the build-tools bootstrap phase, and instead added a workaround to darwin.config itself. Please see patch attached.
Review of attachment 314463 [details] [review]: ::: config/darwin.config @@ +39,3 @@ +# For Xcode >= 7 on OS X 10.10, only the 10.11 SDK is available, try falling back +if not os.path.exists(sdk_root) and distro_version == DistroVersion.OS_X_YOSEMITE: + sdk_root = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX%s.sdk' % SDK_VERSION[DistroVersion.OS_X_EL_CAPITAN] Would be good to add another check to error out if the directory was not found after all
Maybe this should also be just a loop like in ios.config... over all possible SDK versions we would like to have, and we take the first that we find then.
Created attachment 314492 [details] [review] Use xcodebuild to get 'latest' SDK path on OSX Now using the xcodebuild command line utility, which is installed with the Xcode command line tools.
Attachment 314492 [details] pushed as c5020a5 - Use xcodebuild to get 'latest' SDK path on OSX