Unit testing C++ in XCode

by oorst   Last Updated February 11, 2019 06:05 AM

I'm working on a plugin for some drafting software. The plugin takes the form of a dynamically loaded mach-o bundle.

The software vendor provides a template plugin in the form of an XCode project.

The whole thing is written in C++, but XCode doesn't seem to support C++ in it's testing bundle targets.

Tests could be written in Objective-C that include the C++ code, but that's not a great solution.

Another option would be to create another executable target that runs it's own bunch of tests.

What have others done in this situation?

What's the best way to write unit tests in XCode when using C++?

Related Questions

Updated March 29, 2015 06:01 AM

Updated March 09, 2018 14:05 PM

Updated November 26, 2018 22:05 PM

Updated February 28, 2019 22:05 PM

Updated February 18, 2017 10:05 AM