[cxx-interop] Avoid breaking changes after enabling Swift C++ interoperability in library

Hi all,

Background: I am working as a library developer and would like to enable Swift C++ interoperability in our library. Our library supports both CocoaPods and SPM.

Question: I would like to know whether it is possible to avoid breaking changes bring to the library users after enabling Swift C++ interoperability.

In my experiment, all apps and packages depend on the library needs to enable interoperability in Xcode or package manage tools, otherwise the source code cannot be complied.

I am wondering is there any ways to bypass this? For example, is there a way to only enable Swift C++ interoperability only in our libraries?

[cxx-interop] Avoid breaking changes after enabling Swift C++ interoperability in library
 
 
Q