~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to doc/src/ios/creator-ios-dev.qdoc

  • Committer: Timo Jyrinki
  • Date: 2013-12-02 09:16:15 UTC
  • mfrom: (1.1.29)
  • Revision ID: timo.jyrinki@canonical.com-20131202091615-xbj1os1f604ber1m
New upstream release candidate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
39
39
 
40
 
    \section1 Creating Device Connections
41
 
 
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 >
45
 
    \gui Devices.
46
 
 
47
 
    \image qtcreator-ios-device-configurations.png "Devices dialog"
48
 
 
49
 
    If the current device state is \gui Connected, (the traffic light icon is
50
 
    orange), you need to configure the device using Xcode.
51
 
 
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
54
 
    when you
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.
58
 
 
59
 
    \section1 Testing on iOS Simulator
60
 
 
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
67
 
    Simulator.
68
 
 
69
 
    \QC uses the Xcode version set as current on the Mac computer.
70
 
    To check the version, enter the following command:
71
 
 
72
 
    \c {xcode-select --print-path}
73
 
 
74
 
    To change the version, enter the following command:
75
 
 
76
 
    \c {xcode-select --version}
77
 
 
78
40
    \section1 Configuring Devices
79
41
 
80
42
    The process of configuring devices and the UI varies slightly depending on
85
47
 
86
48
    \list 1
87
49
 
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.
 
51
 
 
52
        \li Connect the device to the Mac computer with a USB cable.
89
53
 
90
54
        \li Start Xcode to configure the device:
91
55
 
108
72
 
109
73
            \endlist
110
74
 
 
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
 
77
        charge when you
 
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.
 
81
 
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.
116
87
 
 
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.
 
91
 
117
92
        \li To specify build settings:
118
93
 
119
94
        \list 1
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.
126
101
 
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"
130
103
 
131
104
        \endlist
132
105
 
142
115
 
143
116
    \endlist
144
117
 
 
118
    \section1 Viewing Device Connection Status
 
119
 
 
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 >
 
123
    \gui Devices.
 
124
 
 
125
    \image qtcreator-ios-device-configurations.png "Devices dialog"
 
126
 
 
127
    If the current device state is \gui Connected, (the traffic light icon is
 
128
    orange), you need to configure the device using Xcode.
 
129
 
 
130
    \section1 Testing on iOS Simulator
 
131
 
 
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
 
138
    Simulator.
 
139
 
 
140
    \QC uses the Xcode version set as current on the Mac computer.
 
141
    To check the version, enter the following command:
 
142
 
 
143
    \c {xcode-select --print-path}
 
144
 
 
145
    To change the version, enter the following command:
 
146
 
 
147
    \c {xcode-select --version}
 
148
 
145
149
*/