iOS Frameworks
-
wrote on 28 Jul 2016, 18:07 last edited by DRoscoe
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!
-
Hi,
AFAIK, if it comes with the SDK, you should only need the
LIBS += -framework <framework name>
line.Doesn't that work ?
-
Hi,
AFAIK, if it comes with the SDK, you should only need the
LIBS += -framework <framework name>
line.Doesn't that work ?
wrote on 15 Aug 2016, 14:34 last edited by@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
-
How did you try to use with qmake ? What error did you got ?
-
wrote on 16 Aug 2016, 14:27 last edited by
@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 }
-
Strange⦠Indeed the .pro file looks good at first glance.
What error are you getting ? Symbols not found or the framework itself ?
-
Strange⦠Indeed the .pro file looks good at first glance.
What error are you getting ? Symbols not found or the framework itself ?