diff options
author | Geir Vattekar <geir.vattekar@digia.com> | 2013-11-08 10:57:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-08 16:41:19 +0100 |
commit | b430aa843350fe5cad777055708af403d3d1dd74 (patch) | |
tree | 41aecf2d1a73dc36dcaa7279e370500156890486 | |
parent | a7841e02199d3871a0429d8a2bb79fc67d66ad0b (diff) |
Doc: Updated the iOS platform notes
Change-Id: I53e0389530a96ccd0243592b404af658e3e4bdd3
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
-rw-r--r-- | doc/src/platforms/ios.qdoc | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/doc/src/platforms/ios.qdoc b/doc/src/platforms/ios.qdoc index a6249e064..3215ecdc7 100644 --- a/doc/src/platforms/ios.qdoc +++ b/doc/src/platforms/ios.qdoc @@ -65,26 +65,27 @@ applications on a device and publishing your applications in the App Store, you must join the iOS Developer Program, see \l{https://developer.apple.com/programs/ios/} for further - information. + information. This includes setting up developer certificates and + provisioning profiles. The easiest solution is to use a profile + that takes any App ID (a \c *). - After testing that Xcode is set up correctly, for example, by - running one of the standard Xcode app templates, we can build Qt. - This is done from the Qt 5 top directory, like so: + Before building Qt or any applications, you should test that Xcode + is set up correctly, for example, by running one of the standard + Xcode app templates. - \code - > ./configure -xplatform macx-ios-clang -developer-build -release - \endcode - - It is currently not possible with a single build for use - with both the simulator and devices. If you want to build for the - simulator, use the \c{-sdk} argument. + We can then build Qt. This is done from the Qt 5 top directory, + like so: \code - > ./configure -xplatform macx-ios-clang -developer-build -release -sdk iphonesimulator + > ./configure -xplatform macx-ios-clang -developer-build -release \endcode Then simply run \c{make}. + \note A default build will include both simulator and device + libraries. If you want to build for a single target, use the \c + -sdk argument with either \c iphoneos or \c iphonesimulator. + \section2 Building Applications As mentioned previously, the development workflow on iOS consists @@ -115,5 +116,18 @@ keyword to search for examples in the Qt Creator Welcome mode. Note that some examples may have limited functionality. + \section1 Using Objective-C Code in Qt Applications + + Clang, the compiler used for iOS applications, allows mixing C++ + and Objective-C code; you only have to suffix files containing + both languages with \c .mm. Note that this makes it possible to + use frameworks from Apple's iOS Developer Library in Qt + applications. Most useful is perhaps the possibility for adding + In-App Purchasing with the StoreKit framework. + + We currently have one example that mixes Objective-C and C++ code. + You can check it out + \l{https://github.com/richardmg/qtdd13_qmlapp}{here}. + */ |