QtCreator - cannot add build kit
-
I want to test my qml app on my iphone, but i cannot add a build kit in QtCreator 3.
In the Projects section, under Build & Run, in the Add Kit dropdown, i have 4 (auto-detected) kits, all of them greyed out, so unselectable;- iphoneos-clang Qt 5.2.1 (ios)
- iphoneos-clang Qt 5.2.1 for iOS
- iphonesimulator-clang Qt 5.2.1 (ios)
- iphonesimulator-clang Qt 5.2.1 for iOS
All of them display the following message when i mouse-hover:
"Device type is not desktop."Can anyone point me in the right direction to solve this issue?
Thanks in advance. -
Hi and welcome to devnet,
Did you setup Xcode correctly before installing Qt ?
-
Thanks for the welcome.
I think i setup Xcode correctly ... i just installed it. Could you elaborate on "setting it up correctly"?
I updated the iOS simulators in Xcode just now, but the problem in QtCreator remains.
I updated the Qt components using MaintainanceTool.app , but that didn't help either. -
OK, small update:
I seem to have had two Qt SDK installations and have removed one, now i have two kits in the dropdown:- iphoneos-clang Qt 5.2.1 for iOS
- iphonesimulator-clang Qt 5.2.1 for iOS
Which makes sense, since they were autodetected.
But the problem remains; both indicate that "Device type is not desktop." and are not selectable. -
Are you sure the device type of your kits are configured correctly ?
-
They are iOS Device and iOS Simulator respectively and greyed out, so unchangeable.
-
Just realized you had several SDK installed. So I wonder if you don't have something that might have corrupted Qt Creator configuration file.
I would recommend removing everything and re-install. Since you are going to develop for several platforms you should consider using the online installer, so you can install/update each version of Qt more easily
-
OK, will try, is there a sure way to know everything is gone besides grep?
-
AFAIK, the uninstaller is pretty good at this. Also the Qt install is done in one folder so if there's something remaining then you can just delete that folder
-
Uninstalled, reinstalled with online installer. Same problem :(.
Uninstalled and Xcode as well. No dice.Any other tips are welcome ...
-
Did you also install the command line tools from Xcode ?
-
yes, Preferences > Locations > Command Line Tools: Xcode 5.1 (5B130a)
-
What version of Qt Creator are you having ?
-
Qt Creator 3.0.1
Based on Qt 5.2.1 (Clang 5.0 (Apple), 64 bit)
Built on Jan 31 2014 at 06:00:56
From revision 51af63bb9e
-
Strange, everything looks fine. Can you check the state of the iOS plugin ?
-
1/
Current state: (green) Ready to useon both iphonesimulator and iphoneos when iphone is connected of course
i also installed Kenneth Reitz's osx-gcc (https://github.com/kennethreitz/osx-gcc-installer/) but that didn't help.
2/
could it have something to do with Qt Creator/Qt licenses? -
Do you have a compiler setup for arm in the Compilers panel ?
2/ AFAIK, no
-
pfff, getting really frustrated; i thought some conflicting and badly administrated installs led up to this issue, so i re-installed my whole system (OS X Mavericks).
I needed Qt4 for current projects, so installed that with MacPorts, then installed Qt5.2.1 and Qt Creator using the Online Installer.The exact same problem remains; i cannot add build kits to my project, the message "Device type is not desktop." shows when i hover both "iphoneos-clang Qt 5.2.1 for iOS" and "iphonesimulator Qt 5.2.1 for iOS" in the "Add Kit" dropdown, the options remain grey and unselectable.
To answer your latest question SGaist: Yes, in the compilers tab, i can see iphoneos-clang with Platform codegen flags "-arch armv7".
Would you like to see screenshots? I can provide them, just name the windows and tabs ... Thanks in advance, and thanks for the patience and guidance so far. -
In QtCreator 3.0.1 the iOS plugin was still experimental, and was (in theory) activated for the creator iOS SDK.
Any other creator will have it disabled unless you enable it from in Qt Creator > About Plugins...The problems described here look like not having the plugin enabled, and so not recognising the correct type of the device, and being able to use the kit.
If the iOS plugin is enabled you should see iOS pane in the preferences (or in the plugins).