Search code examples
c++objective-cswiftframeworksopenframeworks

Compile Error in Generated Objective-C interface


I'm using a Swift framework in an OpenFrameworks (C++ project), which is something I've done successfully in the past. I'm able to add in the framework and import it into my Swift file.

However, I'm seeing some really odd compiler errors in my project's generated Objective-C interface from my Swift file, and I'm really not sure where to start troubleshooting. Anyone have any insight?

Below is a screenshot of what the errors are looking like in my generated Swift file:

enter image description here


Solution

  • The problem was that I had forgotten to change the C++ files to Objective-C++ source files. Doing that resolved the problem.