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 Deployment: QApplication created before UIApplicationMain
Forum Updated to NodeBB v4.3 + New Features

IOS Deployment: QApplication created before UIApplicationMain

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.3k 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
    jb2a
    wrote on last edited by
    #1

    Hello,

    I am currently trying to deploy my qtquick application on iPhoneSimulator (my project run currently well on Desktop and Android). Compilation and linking causes no problem. When I run the application from XCode, I encountered this error message:

    Error: You are creating QApplication before calling UIApplicationMain. If you are writing a native iOS application, and only want to use Qt for parts of the application, a good place to create QApplication is from within 'applicationDidFinishLaunching' inside your UIApplication delegate.

    Environment:

    Qt5.2.1 and Qt5.3.1
    Xcode 5.1.1
    Targeting iOS 5.0

    As I have no real practice on Apple environments, does anybody have some advices concerning this issue? Thanks in advance.

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

      Hi,

      I think you should rather ask this question on the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)

      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
      • J Offline
        J Offline
        jb2a
        wrote on last edited by
        #3

        Thanks Sgaist, I have a doubt before posting on the mailing list. I am real noob about iOS things

        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