[Interest] Qt 5.2 basic example on iOS not working, what am I doing wrong?
Thomas Sevaldrud
thomas at silentwings.no
Wed Jan 29 22:09:46 CET 2014
Now I've tried a lot of different things, and had some success, but mostly
failures...
First of all It appears that you need to actually compile something in
XCode before you can use the command line tools from Qt Creator. I just
made a dummy iOS application from a template. The first time I compiled it
in XCode I got a dialog box asking me if I wanted to enable "Developer
Mode" or something on my Mac. After doing this, and going back to Qt
Creator, my Qt test app worked!
This was with the Qt for Android and iOS package:
http://download.qt-project.org/official_releases/qt/5.2/5.2.0/qt-mac-opensource-5.2.0-android-ios-x86_64-offline.dmg
Then I tried the Qt Examples again, but it still won't compile. After a bit
of googling I found that this looked very much like the following bug:
https://bugreports.qt-project.org/browse/QTBUG-35485
But this is supposed to be fixed in Qt 5.2.0. So I thought I'd do a
reinstall of the Qt package. This time I go back to the iOS only package,
i.e this one:
http://download.qt-project.org/official_releases/qt/5.2/5.2.0/qt-mac-opensource-5.2.0-ios-x86_64-offline.dmg
After installing it, I make sure that I have selected "Qt 5.2.0 for iOS" on
the combobox in the examples browser and try compiling a random example
tagged with ios. Same problem, no Qt headers can be found. Exactly the same
behavior as described in the bug report.
And on top of that, my own simple "Hello World" app stopped working in the
simulator again :-(
Now, I'll try the online installer to see if that works better, but right
now I'm starting to lose faith a bit :-)
- Thomas
On Tue, Jan 28, 2014 at 7:35 PM, Thomas Sevaldrud <thomas at silentwings.no>wrote:
> I took the one called Qt 5.2.0 for iOS:
>
>
> http://download.qt-project.org/official_releases/qt/5.2/5.2.0/qt-mac-opensource-5.2.0-ios-x86_64-offline.dmg
>
> This package installed kits for Mac Desktop as well as iOS device and iOS
> simulator.
>
> This is so weird... I guess other people has this working, right?
>
> - Thomas
>
> Den 28. jan. 2014 kl. 07:47 skrev Till Oliver Knoll <
> till.oliver.knoll at gmail.com>:
>
> Am 28.01.2014 um 00:39 schrieb Thomas Sevaldrud <thomas at silentwings.no>:
>
> ...
>
> the examples that are installed with qt, and which are tagged with "ios"
> in Qt Creator. None of these will even compile when targeting the iOS
> simulator. None of the Qt headers can be found when compiling for iOS..
>
>
> Uhm... This might sound stupid, but which Qt binary package did you
> install? There are distinct ones for "Mac Cocoa" (desktop) and "Mac iOS"
> development on the download page...
>
> Cheers,
> Oliver
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140129/a0a52c84/attachment.html>
More information about the Interest
mailing list