I am now using Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk, some software need to build with some lower version of sdk, is it possible to switch the sdk to lower version? should I install different version of Xcode?

Is it possible to just switch the sdk without different version of Xcode because the Xcode is too large.

  • 1
    Yes, you can set the target OS version in your project's build settings.
    – benwiggy
    Apr 11, 2023 at 13:16

1 Answer 1


For the GUI Xcode application, you can change your project's Deployment Target version and Xcode should adjust the SDK used accordingly.

Xcode Deployment Target 12.0

For compiling using different SDKs on the command line, you can use xcode-select:

Usage: xcode-select [options]

Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).

  -h, --help                  print this help message and exit
  -p, --print-path            print the path of the active developer directory
  -s <path>, --switch <path>  set the path for the active developer directory
  --install                   open a dialog for installation of the command line developer tools
  -v, --version               print the xcode-select version
  -r, --reset                 reset to the default command line tools path

You can find historical Xcode Command Line Tools packages on Apple's Additional Downloads page (Apple ID sign-in required).

  • xcode-select does not allow to select a specific SDK from the directory /Library/Developer/CommandLineTools/SDKs it only allows you to select one xcode installation from another
    – ymoreau
    Apr 15 at 15:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .