37
37
You only need Qt libraries that are built for iOS. You can install them as
38
38
part of Qt 5.2, or later.
40
\section1 Creating Device Connections
42
When you connect an iOS device to a Mac computer with USB, \QC
43
automatically detects the device if you have configured it by using Xcode.
44
To view information about the connected device, select \gui Preferences >
47
\image qtcreator-ios-device-configurations.png "Devices dialog"
49
If the current device state is \gui Connected, (the traffic light icon is
50
orange), you need to configure the device using Xcode.
52
The connections between \QC and an iOS device are protected by using an
53
iOS Developer Program certificate that you receive from Apple for a charge
55
\l{http://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/EnrollingADP/EnrollingADP.html}
56
{enroll in the iOS Developer Program}. The certificate is copied to the
57
device when you configure the device.
59
\section1 Testing on iOS Simulator
61
If you do not have an iOS device or you do not want to create an account,
62
you can test applications on
63
\l{http://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/Introduction/Introduction.html}
64
{iOS Simulator}, which is installed as part of Xcode. Each Xcode version
65
simulates a predefined set of hardware devices and software versions. You
66
can change the simulated hardware and software version from within iOS
69
\QC uses the Xcode version set as current on the Mac computer.
70
To check the version, enter the following command:
72
\c {xcode-select --print-path}
74
To change the version, enter the following command:
76
\c {xcode-select --version}
78
40
\section1 Configuring Devices
80
42
The process of configuring devices and the UI varies slightly depending on
88
\li Connect the device to a Mac computer with a USB cable.
50
\li Make sure that you have Xcode and Qt for iOS installed.
52
\li Connect the device to the Mac computer with a USB cable.
90
54
\li Start Xcode to configure the device:
75
The connections between \QC and an iOS device are protected by using an
76
iOS Developer Program certificate that you receive from Apple for a
78
\l{http://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/EnrollingADP/EnrollingADP.html}
79
{enroll in the iOS Developer Program}. The certificate is copied to the
80
device when you configure the device.
111
82
The next time you connect the device to the Mac computer, \QC
112
83
detects it automatically. To disable automatic connections to a
113
84
device that you do not use for development, select \gui Preferences >
114
85
\gui iOS, and deselect the
115
86
\gui {Ask about devices not in developer mode} check box.
88
\note If \QC does not detect the devices, the iOS plugin might not be
89
enabled. Select \gui {Qt Creator} > \gui {About Plugins} >
90
\gui {Device Support} > \gui iOS and restart \QC.
117
92
\li To specify build settings:
124
99
\li Select \gui Projects > \gui {Build & Run} > \gui {Add Kit} to
125
100
add a kit for building and running applications on iOS.
127
\li Check that the \gui {iOS build} field contains the build
128
commands for an Xcode build. To add an Xcode build step, select
129
\gui {Add Build Step} > \gui xcodebuild.
102
\image qtcreator-ios-add-kit.png "Build & Run Settings"
118
\section1 Viewing Device Connection Status
120
When you connect an iOS device to a Mac computer with USB, \QC
121
automatically detects the device if you have configured it by using Xcode.
122
To view information about the connected device, select \gui Preferences >
125
\image qtcreator-ios-device-configurations.png "Devices dialog"
127
If the current device state is \gui Connected, (the traffic light icon is
128
orange), you need to configure the device using Xcode.
130
\section1 Testing on iOS Simulator
132
If you do not have an iOS device or you do not want to create an account,
133
you can test applications on
134
\l{http://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/Introduction/Introduction.html}
135
{iOS Simulator}, which is installed as part of Xcode. Each Xcode version
136
simulates a predefined set of hardware devices and software versions. You
137
can change the simulated hardware and software version from within iOS
140
\QC uses the Xcode version set as current on the Mac computer.
141
To check the version, enter the following command:
143
\c {xcode-select --print-path}
145
To change the version, enter the following command:
147
\c {xcode-select --version}