Swift Framework Project Failed to import C++ Library

  c++, frameworks, ios, objective-c, swift

I have a framework project which is written in Swift, and this project has to import a static library which is written in C++, as I know, Swift can’t call c++ functions directly, so I used a Objective-C framework project to wrap the c++ static library and imported it into the Swift framework project, so far so good, but when I built the swift project, I got errors:enter image description here, I tried to add some system libraries like libc++.tbd, but not work either. anyone help?

env: Swift5, c++11, Xcode13.0

Source: Windows Questions C++

LEAVE A COMMENT