The compiler 'iphonesimulator-clang' (x86-macos-generic-mach_o-64bit) cannot produce code for the qt version 5.2.0 'qt-everywhere-opensource-src-5.2.0
-
I see the following error while trying to configure my Qt Creator for ios-simulator
The compiler 'iphonesimulator-clang' (x86-macos-generic-mach_o-64bit) cannot produce code for the qt version 5.2.0 'qt-everywhere-opensource-src-5.2.0-beta1'(x86-macos-generic-mach_o-32bit)
osx 10.9 mavericks
xcode 5.0.2
qt 5.2.0 beta1
qt creator 3.0 betaI build the qt for ios according to this post http://doc-snapshot.qt-project.org/qt5-stable/ios-support.html and I configured my build with -sdk iphonesimulator.
I downloaded qt creator 3.0 beta and first added my qt version by choosing the qmake I built. Then I moved to kits in Build & Run , and it Auto-detected iphonesimulator-clang Qt 5.2.0 which has an error symbol and when I hover over it, I see the error described above.
I could however the run the qt-ios-demo on ios-simulator by following steps described in Building Applications From the Command Line at http://doc-snapshot.qt-project.org/qt5-stable/ios-support.html.
I want to know if it is possible to build application directly from Qt Creator for ios without using xcode, like I am able to build it for android on my linux system (using same version of Qt and qt creator), or building from command line is the way to go for ios apps.
I am very new to osx and ios, so please forgive me if this is a silly question and let me know if I am doing any thing wrong. It would also help me greatly if some one can give me some more information of qt and iphonesimualtor-clang working.
Thank you.
-
Hi and welcome to devnet,
It looks like there's a compiler mismatch, you used the 32bit compiler when building Qt and somehow there's the 64bit that has been selected/detected when creating the kit. You should be able to choose the correct compiler from the combobox
Hope it helps
-
Thank you for your reply.
I did search for 32bit iphonesimulator-clang compiler but did not find any. Please see the attached image, I only see one iphonesimulator-clang option in available compilers.
http://postimg.org/image/a0c4ykpdd/
http://postimg.org/image/yuvmsna7l/I also installed iOS 6.1 simulator inside xcode but that also did not help, I still see same compilers as before.
I am still confused that Qt was able to find the 32bit compiler while building but Qt creator is not able to find that 32bit compiler which Qt used while building.
I want to give some more information about my build and hopes it helps in finding a solution to my problem. I did build Qt from source but for Qt creator, I just installed it by extracting the .dmg file.
-
Did you compile Qt yourself ?
-
Yes, I compiled qt myself.
I built it by following http://qt-project.org/doc/qt-5.1/qtdoc/ios-support.html, http://blog.qt.digia.com/blog/2013/03/05/qt-for-ios-preview/ and http://doc-snapshot.qt-project.org/qt5-stable/ios-support.html.
My configuration was ./configure -developer-build -release -xplatform macx-ios-clang -nomake tests -nomake examples -sdk iphonesimulator
And then make -j 2 for building it.
-
Just to be sure, did you update Xcode recently ?
-
Yes, I updated my Xcode before building QT, my current Xcode version is 5.0.2.
After building Qt, i installed ios simulator 6.1 and also ios simulator 6 to get ios sdk 6.0 hoping it will find the 32 iphonesimulator-clang compiler but it did not.
-
Did you build Qt before or after the Xcode update ?
-
I did Xcode update before building Qt.
-
What does your compiler panel look like ? Specifically the iphonesimulator-clang