'Xcode SwiftUI project compiler error #include <atomic> file not found
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 (failed to emit precompiled header) complaining that the #include <atomic> file is not found (from one of the C++ header file imported by one of the Objective-C++ wrapper classes that will be called by the Swift code).
What is the explanation for this error and how can I fix this issue for the Swift project ?
The atomic.h appears to be present in the macOS12.1/usr/include/c++/V1 libraries
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
