According to this post Sandbox app for the Mac App Store codesign does not work, but it was written a year ago. Some howtos are even older Getting a Qt/C App in the Mac App Store So what is current status for submitting to Mac App Store? Best Regards Marek. Go to the Qt Creator official download site to download this software. Near the middle of the page, there is a gray bar of links; in that bar, click the link named 'Qt Offline Installers'. Now scroll down to 'OS X Host', and choose Qt 5.5.1 for Mac (588 MB). (The exact version may change over time, but make sure to choose the Mac option.).
Downloading and Installing Qt
Mac applications are technically folders with.app extensions. From a normal user's standpoint from the GUI, it is a single executable entity. But from a developer or command-line savvy user’s perspective, it is a folder with the executable and required resources, including libraries, assets and icon files. Download the app and start enjoying these great features: Featuring Up-To-Date Fuel Prices! Special Offers and Coupons! QT Store Locator! QT Kitchens Menu! Get connected now and benefit as we roll out more features!. This is also an issue that greatly concerns me. The best concrete feedback I have found is from Deskew Technologies on their blog: http://www.deskew.com/component.
There are two ways to install Qt:
You can download the Qt 5 installers and sources from the Downloads page. For more information, visit the Getting Started with Qt page.
Building Qt 5 from Source
Below, you will find more information about building Qt from source.
Note: Qt 5 uses Cocoa, therefore, building for Carbon is not possible.
macOS Versions
See Supported Platforms for the list of macOS versions supported by Qt.
Qt can be built for either x86 or x86_64. Dream diary app mac. 64-bit is used by default. To select a 32-bit build, use the
macx-clang-32 or macx-g++32 mkspec. This is selectable at configure time:
The Qt build system does not support building unversal binaries directly. Instead, use the
lipo tool to glue two Qt builds together.
Note: Qt 5 does not support OS X on PowerPC.
Note: Static builds are not tested.
Qt Designer Download MacAdditional Command-Line Options
On the command-line, applications can be built using
qmake and make . Optionally, qmake can generate project files for Xcode with -spec macx-xcode . If you are using the binary package, qmake generates Xcode projects by default; use -spec macx-gcc to generate makefiles. For example:
Configuring with
-spec macx-xcode generates an Xcode project file from project.pro. With qmake you do not have to worry about rules for Qt's preprocessors (moc and uic) since qmake automatically handles them and ensures that everything necessary is linked into your application. Remote app android mac.
Qt does not entirely interact with the development environment (for example plugins to set a file to 'mocable' from within the Xcode user interface).
The result of the build process is an application bundle, which is a directory structure that contains the actual application executable. The application can be launched by double-clicking it in Finder, or by referring directly to its executable from the command line, for example,
myApp.app/Contents/MacOS/myApp .
If you wish to have a command-line tool that does not use the GUI for example,
moc , uic or ls , you can tell qmake to disable bundle creation from the CONFIG variable in the project file:
Deploying Applications on macOS
In general, Qt supports building on one macOS version and deploying to earlier or later macOS versions. The recommended way is to build on the latest version and deploy to an earlier macOS version.
macOS applications are typically deployed as self-contained application bundles. The application bundle contains the application executable as well as dependencies such as the Qt libraries, plugins, translations and other resources you may need. Third party libraries like Qt are normally not installed system-wide; each application provides its own copy.
A common way to distribute applications is to provide a compressed disk image (.dmg file) that the user can mount in Finder. The deployment tool,
macdeployqt (available from the macOS installers), can be used to create the self-contained bundles, and optionally also create a .dmg archive. Applications can also be distributed through the Mac App Store. Qt 5 aims to stay within the app store sandbox rules. macdeployqt (bin/macdeployqt) can be used as a starting point for app store deployment.
macOS Issues
The page below covers specific issues and recommendations for creating macOS applications.
Where to Go from Here
We invite you to explore the rest of Qt. We prepared overviews to help you decide which APIs to use and our examples demonstrate how to use our API.
Qt's vibrant and active community site, http://qt.io houses a wiki, a forum, and additional learning guides and presentations. https://usebrown418.weebly.com/mac-os-open-source-apps.html.
Qt's iOS port allows you to run Qt applications on iOS devices, such as iPhones, iPads, and iPod Touches.
Supported Configurations
The following configurations are supported.
Getting Started
Development and deployment is done using Xcode. The supported workflow is to maintain a
.pro file based project, which generates an Xcode project. Building and deploying can be done using either Xcode or Qt Creator. We will look at that in more detail in the next section.
The minimum deployment target for Qt applications is specified in Supported Platforms.
Setting Up the Development Environment
You can download the Qt 5 installers from the Downloads page. For more information, see Getting Started with Qt.
Before installing Qt, you first need to install Xcode. You will find it in the Mac App Store here.
Note: As recommended by Apple, you should always use the latest Xcode version when building your applications for the App Store. In practice this means you also need the latest version of macOS to develop apps with Qt, due to Xcode's system requirements.
For running Qt applications on your Mac or in the simulator that comes with Xcode, this is all you need. However, for running applications on a mobile device and/or publishing your applications in the App Store, you must join the Apple Developer Program, and set up developer certificates and provisioning profiles. The easiest solution is to use a profile that takes any App ID (a
* ).
Before building any Qt applications, you should test that Xcode is set up correctly, for example, by running one of the standard Xcode application templates on your device.
Building Applications From the Command Line
As mentioned previously, the development workflow consists of maintaining a normal
.pro file project and exporting it to Xcode.
Here is how to build a project with Xcode:
Note that you must re-import the project if its setup changes, for example, when adding or removing source files.
Building Applications with Qt Creator
You can find information on how to set up and run Apple mobile device applications in Qt Creator's manual:
As mentioned previously, you must have Xcode installed.
Using Objective-C Code in Qt Applications
Clang, the compiler used for applications on Apple Platforms, allows mixing C++ and Objective-C code. To enable this mode, suffix your source files with
.mm , and add them to OBJECTIVE_SOURCES instead of SOURCES in the .pro file. This makes it possible to use frameworks from Apple's Developer Library in Qt applications. Most useful is perhaps the possibility for adding In-App Purchasing with the StoreKit framework.
Examples for iOS
In Qt Creator, tested examples on iOS can be looked up. Use the
ios keyword to search for examples in the Qt Creator Welcome mode. Note that some examples may have limited functionality.
For a list of examples known to work on iOS devices, visit Qt for iOS Examples.
Qt Mac App Store SettingsRelated TopicsQt Designer For Mac
The following topics provide more details about Qt for iOS:
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |