Whenever I compile my Swift 6.1 project that includes a C++ library, I always get lots of these warnings:
<unknown>:0: warning: 'import_owned' Swift attribute ignored on type 'vector': type is not copyable or destructible
If only a few source files are compiled, sometimes I just get a few. When compiling everything clean, however, there are usually over 20 of these printed.
Does anyone know what these warnings mean, and if there's a way to maybe suppress them with SwiftPM?
.target(name: "CppLib"),
.target(
name: "MyApp",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
.product(name: "GRPCServiceLifecycle", package: "grpc-swift-extras"),
"CppLib",
],
swiftSettings: [.interoperabilityMode(.Cxx)],
),