Skip to content

Instantly share code, notes, and snippets.

@startergo
Last active October 30, 2024 16:17
Show Gist options
  • Save startergo/ba3e4f68790cbd54aa57a97cc35c2fae to your computer and use it in GitHub Desktop.
Save startergo/ba3e4f68790cbd54aa57a97cc35c2fae to your computer and use it in GitHub Desktop.
Set own SDK path for Xcode
  • Copy the SDK to:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
  • Link the desired SDK to the MacOSX.sdk:
sudo ln -s MacOSX.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
  • Check if the correct path is set:
xcrun --sdk macosx --show-sdk-path
2024-10-30 11:41:23.780 xcodebuild[73944:1257812] [MT] DVTSDK: Skipped SDK /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk; its version (10.9) is below required minimum (13.0) for the macosx platform.
2024-10-30 11:41:25.042 xcodebuild[73947:1257835] [MT] DVTSDK: Skipped SDK /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk; its version (10.9) is below required minimum (13.0) for the macosx platform.
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk
  • Replace the minimum SDK version:
sudo plutil -replace MinimumSDKVersion -string 10.6 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
  • Select macOS in the SDK list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment