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. Failed to load platform plugin "ios"

Failed to load platform plugin "ios"

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 5 Posters 3.7k 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.
  • J Offline
    J Offline
    JaviCervera
    wrote on last edited by
    #1

    I have compiled Qt 5.1 Beta for iOS myself following the instructions here: http://blog.qt.digia.com/blog/2013/03/05/qt-for-ios-preview/ The included demo builds and runs fine, but I have a problem when trying to run a new project.

    The project has been made with Xcode 4.6.2. It builds fine for the iOS Simulator using the following libraries and frameworks:

    Foundation.framework, CoreFoundation.framework, CoreGraphics.framework, CoreText.framework, QuartzCore.framework, libqiosmain.a, libQt5Core.a, libQt5Gui.a, libQt5PlatformSupport.a, libQt5Widgets.a, libz.1.2.5.dylib

    But when I run the application on the simulator, I get the following error:

    "Failed to load platform plugin "ios". Available platforms are: "

    Do I need any other libraries than the ones I am linking to?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bjanuario
      wrote on last edited by
      #2

      u can check with ldd command if u're missing some libs

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JaviCervera
        wrote on last edited by
        #3

        Using otool (OS X's version of ldd), I see that there are no unsatisfied shared dependencies.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bjanuario
          wrote on last edited by
          #4

          hmm , should work, i will also try 5.1 version as I want to test for iOS, I will try to reproduce here the results ;)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Andre.Bergner
            wrote on last edited by
            #5

            Hi,

            I'm facing the same problem.
            So, what is the solution?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              CuteiOS
              wrote on last edited by
              #6

              There's a bug (feature?) in the 'iOS' platform plugin shipped with the "official" Qt5.1 release that requires it to be 'force loaded' in order to link properly. You will need to add -force_load libqios.a to "Other Linker Flags" in Xcode.

              This bug is not present in the Qt4iOS version of the Qt5.1 release, which can be downloaded as a prebuilt SDK from: http://www.mediator-software.com.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jbrend
                wrote on last edited by
                #7

                I found this very useful article on linking Qt static libraries on iOS from Xcode that addresses this issue:

                [https://thread0.wordpress.com/2014/12/18/a-native-ios-app-with-a-qt-third-party-library/](link url)

                See the comments regarding the linker flag:
                -u _qt_registerPlatformPlugin

                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