iOS Frameworks

  • I don't know if its just me, but the search capability for the forum does not work. I try to search for "ios framework" and the results are 10 pages of posts that have nothing to do with ios. I have better luck with a Google search and then find the Qt forums links from there.

    Anyway, I want to link to the native iOS ExternalAccessory framework. I link to other third-party frameworks using the traditional approach:

    LIBS += -F<path to framework> -framework <framework name>

    The path to the framework I want is:


    That's quite a mouthful! And, I'd have to specify a different path if I were building for the Simulator.

    I was wondering if there was a shortcut method for native iOS frameworks


  • Lifetime Qt Champion


    AFAIK, if it comes with the SDK, you should only need the LIBS += -framework <framework name> line.

    Doesn't that work ?

  • @SGaist Sorry for the long delay. I just returned from vacation. Unfortunately, that does not work. Nothing I have tried has successfully incorporated the ExternalAccessory framework via qmake. I have to add it manually from the Xcode project post-generation

  • Lifetime Qt Champion

    How did you try to use with qmake ? What error did you got ?

  • @SGaist Below is the code in my .pro file with my latest attempt. I do not see any errors at all. The other libraries shown there show up in the project structure when I generate the xCode project files and lode them in xCode, but not ExternalAccessory

    ios {
      SETTINGS_BUNDLE_DATA_ROOT.files += $$PWD/Root.plist
      SETTINGS_BUNDLE_DATA_ROOT.path = Settings.bundle
      SETTINGS_BUNDLE_DATA_LANG.files += $$PWD/Root.strings
      SETTINGS_BUNDLE_DATA_LANG.path = Settings.bundle/en.lproj
    #  UTAS_BUNDLE_DATA.files
    #  UTAS_BUNDLE_DATA.path
      ios_icon.files += $$files($$PWD/ios/icons/*.png)
      launch_image.files += $$PWD/tap_display_launch_screen.xib \
                           ios_icon  launch_image
      QMAKE_INFO_PLIST = tap_display_app-Info.plist
      LIBS += -F /Library/Frameworks/UTCTIMAccess -framework "UTC TIM Access" \
              /usr/lib/libz.dylib /usr/lib/libxml2.dylib
      LIBS += -framework ExternalAccessory
      INCLUDEPATH += /Users/atoltest/Documents/UTAS_SDK/TIMRepositoryAccessHeader

  • Lifetime Qt Champion

    Strangeā€¦ Indeed the .pro file looks good at first glance.

    What error are you getting ? Symbols not found or the framework itself ?

  • @SGaist I am getting absolutely no errors, except when I build and the dependency isn't there.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.