[Interest] iOS Deployment: QApplication created before UIApplicationMain

Jb Hubert jb.hubert at dim3.com
Mon Sep 15 13:43:19 CEST 2014


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.



More information about the Interest mailing list