新 Mac App Store 上的 Qt 应用程序 [英] Qt applications on new Mac App Store

查看:41
本文介绍了新 Mac App Store 上的 Qt 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 OS X 上运行的 Qt 应用程序,它有可能在新的 Mac App Store 上运行.

I have a Qt app that runs on OS X that has potential to go on the new Mac App Store.

我已在 https://developer.apple 上查看了指南.com/appstore/mac/resources/approval/guidelines.html.我还在 SO 上看到了一篇关于 Java 和 AppStore 的帖子.

I have reviewed the guidelines at https://developer.apple.com/appstore/mac/resources/approval/guidelines.html. I also saw a post here on SO about Java and the AppStore.

有没有其他人考虑过他们自己的应用程序以及Qt框架是否会与应用程序警察发生冲突?您仍然必须留在 Apple HIG 中,即没有主题并且不能使用私有 API.

Has anyone else considered this with their own apps and whether or not the Qt framework will run afoul of the App police? You still have to stay within the Apple HIG, i.e. no theming and cannot use private APIs.

与纯 ObjC 相比,这似乎仍然是一个冒险的提议.还有人动心吗?

Still seems like a risky proposition over pure ObjC. Anyone else tempted?

推荐答案

我的 Qt 应用程序今天已被接受并可在 App Store 上下载.所以答案是肯定的,Apple 将接受基于 Qt 的应用程序.

My Qt app has today been accepted and is available on the App Store. So the answer is yes, Apple will accept Qt based applications.

这是有关我的应用程序的一些信息.它用 C++ 编写,并在 LGPL 许可下使用 Qt v4.7.2.Qt 框架包含在应用程序包中(显然,因为 LGPL 要求我使用动态链接而不是静态链接).还有一些其他框架,来自尼康和佳能,因为它是一个用于远程控制 DSLR 相机的应用程序 - 请参阅 http:www.hartcw.com.这些仅适用于 Intel 32 位编译,因此这迫使我的应用程序也面向 32 位,因此我必须使用 Qt 的 32 位 Carbon 构建.

Here's some information about my application. It written in C++ and uses Qt v4.7.2 under the LGPL license. The Qt frameworks are included in the app bundle (obviously, as LGPL requires I use dynamic linking instead of static). There are also some other frameworks, from Nikon and Canon, because its an app for remote control of DSLR cameras - see http:www.hartcw.com . These are only available compiled for Intel 32bit, hence this forces my app to also target 32bit, and so I have to use the 32bit Carbon build of Qt.

关于向本地硬盘写入文件,它不会向bundle目录写入任何内容,但会写入该目录:

Regarding writing files to the local hard disk, it does not write anything to the bundle directory, but does write to this directory:

~/Application Support/Hart/Smart Shooter

它还将 Qt GUI 状态写入此文件(通过 QSettings 类)

It also writes Qt GUI state to this file (via the QSettings class)

~/Library/Perferences/com.hartcw.SmartShooter.plist

'Hart' 是在 Apple 注册的公司名称,'com.hartcw.SmartShooter' 是应用程序标识符名称,所以我认为这是 Apple 检查的内容.

'Hart' is the company name as registered with Apple, and 'com.hartcw.SmartShooter' is the app identifier name, so I think this is what Apple checks against.

关于 plist 文件,我还需要做一些事情,请参阅 http://hartcw.com/francis/qt-and-the-mac-app-store

Also there were a couple of things I had to do regarding the plist file, see http://hartcw.com/francis/qt-and-the-mac-app-store

事实上它是第一次被 Apple 接受!在等待审核"阶段大约10天,然后过渡到审核中"大约4个小时,然后在应用商店上线.

Infact it was accepted first time by Apple! It was in the 'waiting for review' stage for about 10 days, then transitioned to 'in review' for about 4 hours, and then went live on the app store.

这篇关于新 Mac App Store 上的 Qt 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆