提交Qt 5.3应用程序在Mac应用商店审查
Submitting Qt 5.3 app for Review on Mac App Store
对于上下文,我在OSX 10.9上使用带有Xcode 5.1.1的Qt 5.3.1。
经过一番努力,我终于能够通过应用程序加载器上传应用程序的PKG文件,并出现在iTunes Connect中我的应用程序的"预发布"构建列表中。然而,一旦我将构建添加到应用程序中并单击"提交以供审查",我就会收到以下大量错误:
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
The nested bundle must contain an executable that matches the CFBundleExecutable key in the Info.plist of the nested bundle .
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
ITC.apps.assetvalidation.DESKTOP_MISSING_NESTED_BUNDLE_IDENTIFIER.error.message
The Info.plist of the nested bundle must contain a valid CFBundleExecutable key.
我正在应用这个答案中提到的注意事项:签署OSX 10.9 的框架
基本上,我通过Xcode(在发布模式下)构建我的应用程序,然后使用我编写的一个小Python脚本来帮助自动化应用商店的准备工作。脚本的要点如下:
import os
import shutil
import subprocess
import sys
bundleFolder = '/path/to/the/bundle/app'
qtFolder = '/path/to/qt/et/al'
entitlements = '/path/to/entitlesments/file'
print 'Bundle folder: ', bundleFolder
print 'Qt Folder: ', qtFolder
print 'Executing macdeploy'
subprocess.call([qtFolder + '/bin/macdeployqt', bundleFolder + '/Program.app'])
frameworks = ['QtConcurrent', 'QtCore', 'QtGui', 'QtMultimedia', 'QtMultimediaWidgets', 'QtNetwork',
'QtOpenGL', 'QtPositioning', 'QtPrintSupport', 'QtQml', 'QtQuick', 'QtSensors', 'QtSql',
'QtWebKit', 'QtWebKitWidgets', 'QtWidgets', 'QtXml', 'QtXmlPatterns']
for fwork in frameworks :
print ('Copying Info.plist to frameworks: ' + fwork)
fworkFolder = qtFolder + '/lib/' + fwork + '.framework/Contents/Info.plist'
destFolder = bundleFolder + '/Program.app/Contents/Frameworks/' + fwork + '.framework/Resources/'
if (os.path.exists(destFolder)) :
print 'Copying ' + fworkFolder + ' to ' + destFolder
shutil.copy(fworkFolder,destFolder)
print ('Deleting unnecessary PlugIns')
rmFiles = ['accessible','audio', 'mediaservice', 'printsupport']
for rmFile in rmFiles :
fullFile = bundleFolder + r'/Program.app/Contents/PlugIns/' + rmFile
if (os.path.exists(fullFile)) :
print ('Deleting directory: ' + fullFile)
shutil.rmtree(fullFile)
print ('Signing Qt Executables')
for fwork in frameworks :
subprocess.call([r'/usr/bin/codesign',
r'--deep',
r'--force',
r'--verify',
r'--verbose',
r'--sign',
r'3rd Party Mac Developer Application: [valid info]',
r'--entitlements',
entitlements,
bundleFolder + '/Program.app/Contents/Frameworks/' + fwork + '.framework/Versions/5/' + fwork
])
print ('Signing Bundle')
subprocess.call([r'/usr/bin/codesign',
r'--deep',
r'--force',
r'--verify',
r'--verbose',
r'--sign',
r'3rd Party Mac Developer Application: [valid info]',
r'--entitlements',
entitlements,
bundleFolder + '/Program.app',
])
print ("Building PKG")
subprocess.call([r'/usr/bin/productbuild',
r'--component',
bundleFolder + '/Program.app',
r'/Applications',
r'Program-Installer.pkg'
])
print ("Building Signed PKG")
subprocess.call([r'/usr/bin/productsign',
r'--sign',
r'3rd Party Mac Developer Installer: [valid info]',
r'Program-Installer.pkg',
r'Program-Installer-Signed.pkg'
])
我猜问题出在每个Qt*.框架的Info.plist文件中,但当我查看它们内部时,据我所知,这些信息看起来是有效的,例如:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>5.3</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>QtConcurrent</string>
<key>NOTE</key>
<string>Please, do NOT change this file -- It was generated by Qt/QMake.</string>
</dict>
</plist>
所以,我不明白为什么Mac应用商店在抱怨。有人有什么想法吗?
谢谢!
我终于通过了。似乎QtInfo.plist文件已损坏,即它们没有足够的信息,并且在Apple服务器上的最后一步验证失败。
为了解决这个问题,我从一个常规XCode编译的框架中获取了一个Info.plist文件,该框架包含在一个本地Mac应用程序中,并在之前通过了验证。内容是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>13E28</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>BUNDLE_NAME</string>
<key>CFBundleIdentifier</key>
<string>BUNDLE_IDENTITY</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>BUNDLE_NAME</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>BUNDLE_VERSION</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>BUNDLE_VERSION</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>5B1008</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>12F37</string>
<key>DTSDKName</key>
<string>macosx10.8</string>
<key>DTXcode</key>
<string>0511</string>
<key>DTXcodeBuild</key>
<string>5B1008</string>
</dict>
</plist>
我已经用占位符字符串替换了原始文件的捆绑包版本、名称和标识符,而我使用该文件作为Qt框架的Info.plist,通过Perl脚本用正确的值替换占位符。
有了一些额外的修复,比如符合本文的正确符号链接,我终于通过了我的Qt 4.8应用程序的审查,我相信你应该能够用Qt 5+获得同样的结果。
相关文章:
- 试图在visual studio上用C++创建一个桌面应用程序
- FFmpeg:制作一个应用程序比直接使用ffmepg更好吗
- c++r值引用应用于函数指针
- 在C应用程序中运行C++(带有STL)函数
- 使用VerQueryValue检索应用程序的文件描述
- Qt C++静态thread_local QNetworkAccessManager是线程应用程序的好选择吗
- 使用调试/崩溃报告将应用程序部署到客户端
- C++控制台应用程序阻止退出
- 码头化的C++应用程序是否向后兼容早期的内核版本
- 将应用程序从32位移植到64位时出现问题
- 有没有任务栏API可以立即应用注册表更改
- 如何改变c++应用程序的视觉效果
- WM_CTLCOLORSTATIC从未在WIN32应用程序中触发
- PC中的程序和PHONE中的本机描述应用程序之间的数据连接
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 示例外壳应用程序显示的 V8 "segmentation fault (core dumped)"错误
- phytec phyBOARD iMX-6在从闪存而不是SD卡运行qt5 opengles应用程序时表现不佳(FPS减半
- TMap::Emplace() 在应用现有密钥时会覆盖吗?
- 为什么导入Mixed native/CLR lib.dll的本机C++应用程序没有在Mixed lib.dll中的外部变
- 提交Qt 5.3应用程序在Mac应用商店审查