在Mac App Store上提交Qt 5.3应用程序进行审查
对于上下文,我在OSX 10.9上使用Qt 5.3.1和Xcode 5.1.1。
经过一番努力之后,我终于可以通过Application Loader上传我的应用程序的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构建我的应用程序(在发布模式下),然后使用我编写的一个小脚本来帮助自动化应用商店的准备工作。 脚本的要点在这里:
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 * .framework的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 App Store为什么抱怨。 有人有想法吗?
谢谢!
我终于明白了。 看起来好像Qt Info.plist文件已损坏,即他们没有足够的信息并且Apple服务器上的最后一步验证失败。
为了解决这个问题,我从一个原生Mac应用程序中包含的常规XCode编译框架中获取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>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 +相同的结果。
链接地址: http://www.djcxy.com/p/78995.html