When I import LibWrapperSwift to my executable target, then I get an error could not build Objective-C module LibCXX. But, If I copy swiftSettings to executable target, then LibCXX will compile, but I will get an error when compile Apple Obj-C based frameworks like the AppKit.
That is a huge problem for me, because I should use c++ in my project and don't lose normal ObjC compiler, because It's helps me to work with AppKit or UIKit frameworks.
I got the mistake in my source example, but in my attached screenshot is all ok.
My main point that -enable-cxx-interop not works with ObjectiveC based frameworks. I've no idea why
Is this reproducible with a recent nightly toolchain (5.8)? I recall there were some issues with enums that were fixed in the last couple of months, this might be one of them.
A drive by reminder: C++ interop is an unstable, experimental project. Things will break and be re-named in the future. I do not recommend using it in production.