Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Linking iOS *.framework libs
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Linking iOS *.framework libs

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kolayuk
    wrote on last edited by
    #1

    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 armv7

    it seems I need to link StoreKit.framework to my project... How can I do that?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kolayuk
      wrote on last edited by
      #2

      I searched about Mac OS Qt programming also, not iOS only and found a solution:
      @ LIBS += -framework StoreKit@
      It works for me

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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 !

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved