[SOLVED] Linking iOS *.framework libs
-
Hello! I am implementing iOS in-app-purchase mechanism now, I wrote a wrapper in objective-C, added my .mm files as OBJECTIVE_SOURCES to pro file. But compilation failed with errors:
"OBJC_CLASS$_SKProductsRequest", referenced from:
objc-class-ref in destorekitmanager.o
ld: symbol(s) not found for architecture armv7it seems I need to link StoreKit.framework to my project... How can I do that?
-
I searched about Mac OS Qt programming also, not iOS only and found a solution:
@ LIBS += -framework StoreKit@
It works for me -
Hi and welcome to devnet,
It's not only a solution, it's the correct way to link frameworks for both OS X and iOS development.
If you need to give additional paths to search for other frameworks you can use -F (equivalent to -L for libraries)
Since you have all working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
Happy Coding !