<atomic> file not found for SwiftUI project

I am trying to use a C++ library (Sony Remote SDK) in a macOS project and I have successfully created an Objective-C test project but when I tried to create a SwiftUI version of the same project I get a compiler error complaining that the #include <atomic> file is not found.

This line is in one of the C++ header files and I have a wrapper Objective-C++ object which imports the C++ header file.

How can I fix this issue ?

Mixing C++ and Swift or SwiftUI code in the same file is not yet supported. You can probably mix them in the same project by using C oder Objective-C files for bridging but I am not expert on this topic.

I have a wrapper Objective-C++ object which imports the C++ header file.

How does that wrapper get into Swift? Via a bridging header? Or something else?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

&lt;atomic&gt; file not found for SwiftUI project
 
 
Q