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. iOS Frameworks

iOS Frameworks

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ios
7 Posts 2 Posters 3.7k Views
  • 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.
  • D Offline
    D Offline
    DRoscoe
    wrote on 28 Jul 2016, 18:07 last edited by DRoscoe
    #1

    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:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
    

    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

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Jul 2016, 22:26 last edited by
      #2

      Hi,

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

      Doesn't that work ?

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

      D 1 Reply Last reply 15 Aug 2016, 14:34
      0
      • S SGaist
        28 Jul 2016, 22:26

        Hi,

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

        Doesn't that work ?

        D Offline
        D Offline
        DRoscoe
        wrote on 15 Aug 2016, 14:34 last edited by
        #3

        @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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Aug 2016, 20:09 last edited by
          #4

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

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

          D 1 Reply Last reply 16 Aug 2016, 14:27
          0
          • S SGaist
            15 Aug 2016, 20:09

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

            D Offline
            D Offline
            DRoscoe
            wrote on 16 Aug 2016, 14:27 last edited by
            #5

            @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 \
                                    $$files($$PWD/ios/launch-images/*.png)
              QMAKE_BUNDLE_DATA += SETTINGS_BUNDLE_DATA_ROOT  SETTINGS_BUNDLE_DATA_LANG \
                                   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
            
              QMAKE_IOS_DEPLOYMENT_TARGET = 8.2
            }
            
            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 16 Aug 2016, 20:12 last edited by
              #6

              Strange… Indeed the .pro file looks good at first glance.

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

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

              D 1 Reply Last reply 17 Aug 2016, 14:16
              0
              • S SGaist
                16 Aug 2016, 20:12

                Strange… Indeed the .pro file looks good at first glance.

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

                D Offline
                D Offline
                DRoscoe
                wrote on 17 Aug 2016, 14:16 last edited by
                #7

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

                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