0

I have tried a lot of searching to see if there are similar questions as mine. But really couldn't find any question which accurately answers what I am looking for. Following is something similar but the suggestion in answer does not work Can't add iOS OpenCV Framework in a QT Project

Hence, framing my question. Following is my question: What I am trying to do is pretty basic though. I have built a cocoa touch framework using XCode. It is built successfully & the .framework is located in a location like below //Users/rb/Mybinaries/myframework.framework

I have a public class in the framework module with a public function that one can call in.

Next I want to use it in a Qt application that is built using Qt 5.5 for iOS platform. The runs fine on my iPhone.

But I am not able to figure out how I can link this .framework (cocoa touch framework.. not static framework) to my Qt app & call into this exposed method.

Got to know that following should work: QMAKE_LFLAGS += -F//Users/rb/Mybinaries/...(location to framework folder) LIBS += -framework myframework

But after this, I am not able to include the header file in the framework to call my method. I know that I can mix swift & Qt in one project. But I am interested to know if we can dynamically link to a cocoa .framework & invoke an exposed method in the cocoa framework.

Also would be helpful if there is a working sample somewhere.

Thanks a many in advance.

2
  • I guess it depends on what the framework exposes. It could be C, Objective-C or C++. Qt will only be able to use C and C++. Commented Nov 10, 2015 at 10:18
  • But is it not possible to call into the static framework from Qt by somehow including it in the .pro file ? Commented Nov 10, 2015 at 14:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.