2017-06-21 61 views
3

我有一個問題,我無法解決提交我的應用程序時應用程序商店。該應用程序的部署目標是iOS 10.0電子郵件錯誤:「意外的CFBundleExecutable密鑰」

我得到這個錯誤與許多第三方庫,我使用CocoaPods來管理庫和錯誤的報告是通過電子郵件發送,上傳到App Store後:

Unexpected CFBundleExecutable Key - The bundle at '/Payload/APP_NAME.app/Target Support Files/FRAMEWORK_FOLDER/Info.plist' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue

所以我試圖消除CFBundleExecutable鍵,在CFBundlePackageType重點用BNDL,作爲錯誤指示,也因爲是我在很多論壇發現。但是,這樣做,我不能運行Xcode中的應用,構建成功,但打開之前它會提示此消息:

Bundle at path /PATH/Payload/NAME.app/Frameworks/FRAMEWORK_NAME.framework has missing or invalid CFBundleExecutable in its Info.plist

和應用程序不運行。

因此,如果我嘗試解決錯誤,應用程序將停止使用Xcode。我還沒有找到一個不同的解決方案,我需要上傳我的應用程序到App Store,順便說一句,是我第一次上傳它。 我也試過如果是與CocoaPods相關的東西,但還沒有找到任何東西。另外,我試着設置Enable bitcode : NO,但是也沒有工作):

有什麼想法?

乾杯!

回答

0

我找到了解決辦法:

確保,無論你的目標的Info.plist文件也沒有任何的文件夾或通過的CocoaPods在「複製包資源」添加生成的文件在「建設階段「你的目標應用程序。

在我的情況下,添加了「目標支持文件」文件夾,因此所有Info.plist文件的庫。刪除它解決了這個問題,我可以在最後提交應用程序!