Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

IOS Deployment: QApplication created before UIApplicationMain



  • 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.


  • Lifetime Qt Champion

    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)



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


Log in to reply