<!--
{
  "availability" : [
    "macCatalyst: 13.0 -",
    "macOS: 10.15 -"
  ],
  "documentType" : "symbol",
  "framework" : "xcselect",
  "identifier" : "/documentation/xcselect",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "xcselect"
    ],
    "preciseIdentifier" : "xcselect"
  },
  "title" : "xcselect"
}
-->

# xcselect

Access the path of the macOS SDK available on the host system.

## Overview

The system provides [`xcselect_host_sdk_path`](/documentation/xcselect/xcselect_host_sdk_path), a function to locate the path to a macOS SDK version for building executables, libraries, and other content that runs on the local Mac. If you don’t use Xcode build tools, you can use this function to get the macOS SDK version you need.

> Note: The `xcselect` framework is not available in Swift.

## Topics

### macOS SDK Paths

[`extern errno_t xcselect_host_sdk_path(xcselect_host_sdk_policy_t sdk_policy, char **path);`](/documentation/xcselect/xcselect_host_sdk_path)

Returns the path to a version of the macOS SDK for building executables, libraries, and other content that run on the local Mac.

### Reference

[Macros](/documentation/xcselect/macros)

Macros in the xcselect framework.

[Enumerations](/documentation/xcselect/enumerations)

Enumerations in the xcselect framework.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)