Hi stackoverflowers :)
If I build a sample Qt / qmake sample (in my case, an analog clock ) and deploy it on a device with iOS 7.1 everything goes smoothly: the application works perfectly on the device. Chapeau - The people at digia have done a great job integrating ios tools into the Qt workflow.
However, if I translate the qmake project into a CMake project, things will not be so smooth. I added an example of an analog clock from Qt-5.3.1 (see below), where I added CMakeLists.txt and a script that runs CMake to create an Xcode project for iOS. The project compiles and even links (I had to add some additional link libraries, see the CMake source file). Yay
But here's the catch: the application crashes at runtime with the following error message:
Error: Failed to load the plug-in platform "ios"
As a comment, this says that using the project parameters, you must "force download" libqios. This did not improve the situation, but only the error message changed to:
Error: you create QApplication before calling UIApplicationMain. If you are writing a native iOS application and want to use Qt as part of the application, a good place to create QApplication is from within the 'applicationDidFinishLaunching' inside your UIApplication delegate.
I have two questions:
- - , ? , qmake ( ios mkspecs) . CMake?
- libs (harfbuzzng, qios, libpng iOS) ? find_package (Qt5...) ?
- zip , Qt-CMake. Qt, , - Qt-5.3.1 iOS.
. , qmake , Qt. Qt: //Qt//// .