Page MenuHome

macOS: fix xcrun sdk detection for minimal CLT
ClosedPublic

Authored by Ankit Meel (ankitm) on Jan 10 2022, 7:11 AM.

Details

Summary

In case Xcode is not installed:

$ xcrun --show-sdk-version       
xcrun: error: unable to read SDK settings for '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
xcrun: error: unable to lookup item 'SDKVersion' in SDK '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'

$ xcrun --sdk macosx --show-sdk-version
12.1

Diff Detail

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Jan 10 2022, 7:11 AM
Ankit Meel (ankitm) created this revision.
This revision is now accepted and ready to land.Jan 10 2022, 4:42 PM