Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt 5.2 & iOS: "Nothing to be done"

I am currently trying to get a simple widget based "hello world" iOS application getting built with "Qt 5.2 for iOS". However, when using QtCreator to compile a freshly created test application with the iphonesimulator-clang kit it just says "there is nothing to be done for first", and no binary file is created. I have spent a few hours already to track this down, but can't figure out what I have configured wrong.

I am using a MacBook Air with OS X 10.8.5, Qt 5.2.0, QtCreator 3.0.0 and XCode 5.0.2 (in case this matters). There is also Qt 4.8.5 installed on this machine, this this version is what I used for production purposes.

Some more things to mention:

  • When running qmake from QtCreator it gives a warning "The version of XCode installed on this system is not recognized"
  • The iOS sample applications shipped with 5.2 do build and run correctly
  • When deleting the ".pro.user" file of such a shipped sample, which means that I need to reconfigure the project in QtCreator again afterwards (selecting the kit), the sample shows the same problems as my freshly created test app: qmake will warn about the XCode version and the make step will not do anything.

Any hints are more than welcome!

like image 237
Fabian Avatar asked Jan 11 '23 15:01

Fabian


1 Answers

In case other people run into the same problem - I finally tracked it down: Installing the latest XCode command line tools solved the problem.

When initially installing "Qt 5.2 for iOS" I also updated to the latest XCode version via the App Store. I guess that the XCode update did not update the command line tools (which I already had installed before), and for some reason Qt did then silently fail on this.

like image 88
Fabian Avatar answered Jan 18 '23 12:01

Fabian