<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "Xcode: 26.3.0 -"
  ],
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/creating-a-metal-dynamic-library",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Creating a Metal dynamic library"
}
-->

# Creating a Metal dynamic library

Compile a library of shaders and write it to a file as a dynamically linked library.

## Discussion> Note: This sample code project is associated with WWDC20 session [10615: Build GPU Binaries with Metal](https://developer.apple.com/wwdc20/10615/).

### Configure the sample code project

This sample requires the following system and software configuration:

- macOS 10.16 or later
- iOS 14 or later
- Xcode 12 or later

---

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)