![](/img/trans.png)
[英]Phonegap - The Info.plist in the package must contain the CFBundleVersion key
[英]Error: The Info.plist in the package must contain the CFBundleIdentifier key
我正在嘗試使用 altool 提交我的 iphone 應用程序。 但是,提示以下錯誤:
altool[18508:507] *** Error: (
"Error Domain=ITunesConnectFoundationErrorDomain Code=-27000 \"The Info.plist in the package must contain the CFBundleIdentifier key.\" UserInfo=0x7f {NSLocalizedDescription=The Info.plist in the package must contain the CFBundleIdentifier key., NSLocalizedFailureReason=Unable to validate your application.}",
"Error Domain=ITunesConnectFoundationErrorDomain Code=-27001 \"The Info.plist in the package must contain the CFBundleVersion key.\" UserInfo=0x7f {NSLocalizedDescription=The Info.plist in the package must contain the CFBundleVersion key., NSLocalizedFailureReason=Unable to validate your application.}",
"Error Domain=ITunesConnectFoundationErrorDomain Code=-27002 \"The Info.plist in the package must contain the CFBundleShortVersionString key.\" UserInfo=0x7f {NSLocalizedDescription=The Info.plist in the package must contain the CFBundleShortVersionString key., NSLocalizedFailureReason=Unable to validate your application.}",
"Error Domain=ITunesConnectFoundationErrorDomain Code=-27000 \"The package does not contain an Info.plist.\" UserInfo=0x7f{NSLocalizedDescription=The package does not contain an Info.plist., NSLocalizedFailureReason=Unable to validate your application.}"
我已經驗證了這些鍵( CFBundleIdentifier
、 CFBundleVersion
、 CFBundleShortVersionString
)在 Info.plist 中。 此外,我從 .ipa 文件(使用 xcodebuild 和 xcrun - 命令行生成)打開了有效負載,並且可以確認這些鍵也在 Info.plist 文件中。
當我使用 XCode 編譯、存檔和提交時,驗證通過。
有什么幫助嗎?
我的 Xcode 版本:6.1.1 (6A2008a) OSX 10.9.5
我遇到過同樣的問題。
"Error Domain=ITunesConnectFoundationErrorDomain Code=-27000 \"Could not find a CFBundlePackageType within the Info.plist; or the package is missing an Info.plist.\" UserInfo=0x7fe72051f3a0 {NSLocalizedDescription=Could not find a CFBundlePackageType within the Info.plist; or the package is missing an Info.plist., NSLocalizedFailureReason=Unable to validate your application.}"
當我使用新的exportOptionsPlist
選項重新編寫用於導出*.ipa
exportOptionsPlist
腳本時,出現了此問題。 舊腳本與altool
一起工作正常。 新的沒有。
舊腳本:
xcodebuild -exportArchive -exportFormat ipa -archivePath "MyApp.xcarchive" -exportPath "MyApp.ipa" -exportProvisioningProfile "appstore-provision"
新腳本:
xcodebuild -exportArchive -exportOptionsPlist "tools/export-options.plist" -archivePath "MyApp.xcarchive" -exportPath "MyApp.ipa"
問題是xcodebuild
現在創建MyApp.ipa/MyApp.ipa
而不是MyApp.ipa
。
我改變了-exportPath
:
xcodebuild -exportArchive -exportOptionsPlist "tools/export-options.plist" -archivePath "MyApp.xcarchive" -exportPath "."
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.