how to use cpp with swift

Asked on 06/15/2025

1 search

To use C++ with Swift, you can refer to the session titled "Safely mix C, C++, and Swift" from WWDC 2025. This session provides guidance on how to ensure safety when calling C and C++ code from Swift. It covers topics such as finding unsafe calls in Swift, calling C/C++ safely, and improving the safety of C/C++ code.

For a detailed explanation on how to safely mix these languages, you can start by watching the session from the beginning. Here's the link to the session: Safely mix C, C++, and Swift.

If you are interested in specific topics like finding unsafe calls or calling C/C++ safely, you can jump to the relevant chapters in the session:

These resources should help you understand how to integrate C++ with Swift effectively and safely.