<!--
{
  "availability" : [
    "macOS: 14.0.0 -",
    "Xcode: 15.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/MixingLanguagesInAnXcodeProject",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Mixing Languages in an Xcode project"
}
-->

# Mixing Languages in an Xcode project

Use C++ APIs in Swift – and Swift APIs in C++ – in a single framework target, and consume the framework’s APIs in a separate app target.

## Overview

> Note: This sample code project is associated with WWDC 2023 session 10172: [Mix Swift and C++](https://developer.apple.com/wwdc23/10172).

### Configure the sample code project

Before you run the sample code project in Xcode, ensure you’re using macOS 14.0 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)