How To Call my Qt/C++ Dylib from Objective C?
I've compiled a dylib in Qt/C++. I created a simple class method called test() that reads a string input and returns a string output with "-response" back. Now how do I load that inside Objective C in XCode 7 (a default Cocoa application) and make it emit test() via NSLog() ? This is what my build folder looks like in Qt/C++. You need to use an Objective-C++ class, which is a hybrid of Objective-C and C++. The greatest challenge using one or more Objective-C++ classes in a largely Objective-C project is avoiding exposing C++ classes to the Objective-C classes. Therefore you need to avoid C++