2014-09-05 75 views
2

对于背景审查,我使用Qt 5.3.1与OSX 10.9的Xcode 5.1.1。提交的Qt 5.3的应用程序在Mac App Store中

经过一番挣扎后,我终于能得到我的应用程序的PKG文件通过Application Loader上传和出现在我的应用程序在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. 

我申请在该答复中提到的注意事项:Sign a Framework for 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抱怨。有人有想法吗?

谢谢!

+0

同样在这里。我认为这可能是一个新的要求,即在嵌套包的plist文件(即YouApp.app而不是框架名称)中拥有主应用程序的可执行名称,但由于iTunesConnect不允许我更新构建。我删除旧版本,上传一个新版本,但是我仍然只有一个版本在服务器上(分开上传)。如果您知道如何重新上传二进制文件 - 我可以尝试一下我的想法并回报。 – Gobra 2014-09-06 00:28:30

+0

我通过递增内部版本号完成了上传新的二进制文件。 – Addy 2014-09-06 01:12:00

+0

我甚至不能改变版本号后,看到在iTunes新建,但每次上传我收到一个邮件具有相同的问题列表。所以,我想,我的想法不起作用。 – Gobra 2014-09-06 10:35:22

回答

3

我终于虽然它。这似乎是Qt的的Info.plist文件已损坏,即他们没有足够的信息和对苹果服务器发生故障时的最后一步验证。

为了解决这个问题,我从一个原生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> 

我已经取代软件包版本,名称和占位符字符串原始文件的标识,比我用这个文件的Info.plist Qt的框架,通过正确的值替换占位符Perl脚本。

有一些额外的修复程序,如合适的符号链接符合this article,我终于得到了我的Qt 4.8应用程序通过审查,我相信你应该能够得到与Qt 5 +相同的结果。

+0

这终于从我的工作,我的应用程序终于被批准审查。谢谢! – Addy 2014-09-09 12:58:26

+1

谢谢!如果其他人想知道什么字符串用于占位符(例如QtCore 4.8):BUNDLE_NAME - > QtCore,BUNDLE_IDENTITY - > QtCore,BUNDLE_VERSION - > 4 – Hyndrix 2014-09-13 09:26:29

+0

我有同样的问题,但应用新的plist仍然不解决它说坏CFBundleExecuitable密钥。你能否提供更多关于你如何解决这个错误的信息? – ponnus 2014-10-06 18:07:21

相关问题