Mix Swift and C++ - macOS backward compatibility

If we start using this what's the oldest macOS version that will be supported by the resulting application?

Post not yet marked as solved Up vote post of runningcode Down vote post of runningcode
651 views

Replies

C++ interop supports back deployment for all features except foreign reference types. The standard library overlay (which adds things like initializers to convert Swift Strings to C++ strings and vice-versa) is bundled with your app via a static library. Foreign reference types will be marked as unavailable on older OSes and only back deploy to iOS 16.4, macOS 13.3.

Here is a link to the relevant documentation: https://www.swift.org/documentation/cxx-interop/status/#minimum-deployment-version-for-mixed-language-application