-
UID:111995
-
- 注册时间2011-02-14
- 最后登录2018-11-15
- 在线时间257小时
-
- 发帖130
- 搜Ta的帖子
- 精华0
- 金钱1500
- 威望145
- 贡献值1
- 好评度135
-
访问TA的空间加好友用道具
|
http://www.qtcentre.org/threads/35292-Qt-Apps-banned-from-Mac-App-Store/page2 全文请看链接 So we submitted a Qt based app to the App Store and had it rejected for the following reasons:
- Improperly named files in ~/Library/Application Support/* - File created at ~/Library/Preferences/com.trolltech.plist
The first was a result of using QDesktopServices::storageLocation() for QDesktopServices::dataLocation or QDesktopServices::cacheLocation
They need you to create the directory not like ~/Library/Application Support/Company Name/Product Name
but as
~/Library/Application Support/bundleId (com.company.App) The following patch will change Qt to use the QCoreApplication:organizationDomain() and QCoreApplication::applicationName() fields to build the path to store for data and cache. This is ONLY valid if you bundle Id exactly matches the above values qt-mac-app-store-cache-location.txt
The following patch will add an exported function called void qt_force_trolltech_settings_to_app_area(bool bVal) which you must call FIRST thing in your main function. To access declare an extern to it for proper linking. This will put all items found formally in com.trolltech.plist as a group "Trolltech" inside the default plist file for your app (See above patch about domain and name for proper bundle id usage). qt-mac-settings-in-app-area.txt
|