Anyone know of an example project of a Objective-C project calling Objective-C++ code.
I’ve read all the stackoverflow q’s about getting one to call the other but no luck.
Would help if I had a code sample that worked.
The Obj-C++ I have is a lib .a and some c++ headers. Thats all.
Here’s example project I made, it’s actually easy to undestand, you can just rename your classes from .m to .mm or in project settings set “Compile sources as” to Objective-C++. I have had some trouble with C++ headers which didn’t have C++ implementation as well – changing settings to compile everything as Objective-C++ helped.
Here’s the code https://github.com/libec/StackOverflow/tree/master/03-Obj-C%2B%2B