2017-03-23 31 views
3

更新 的XCode版本的包:8.2 iOS的目標:9在「my_app.app/ResearchKit/ResearchKit/Info.plist」不包含捆綁可執行

希望一些可以指出,我認爲這不是一個錯誤。很簡單,我拉了最新穩定版的researckKit,並將.xcodeproj文件放入我的新iOS項目中,添加了嵌入式二進制文件。我在模擬器中創建了幾個看起來很好的步驟。我的應用程序構建良好,甚至存檔驗證確定。上傳到應用商店是好的,但是從應用程序商店,然後我收到電子郵件,其中包含6項都長得差不多,爲6個不同Info.plist文件ReserachKit框架內:

Unexpected CFBundleExecutable Key - The bundle at 'my_app.app/ResearchKit/ResearchKit/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.

我發現相當few answers on Stack Overflow,許多人同意執行錯誤消息中建議的內容:只需從.plist文件中刪除CFBundleExecutable Key即可。我試過了,但後來我的檔案甚至不會與下面的錯誤驗證:

iTunes Store operation failed. Invalid Bundle Structure - The binary file 'my_app.app/Frameworks/ResearchKit.framework/ResearchKit' is not permitted. Your app can’t contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure.

**更新**

就算我把ResearchKit框架的新版本從GitHub這個項目。所以相反,我剛剛從另一個Xcode項目中試了一個版本的ResearchKit的副本,我最近在應用商店中成功部署了該版本,我認爲它是否適用於該應用的應用。但是,唉,我從App Store收到有關意外的CFBundleExecutable Key的同樣的電子郵件錯誤。

這又是一個蘋果支持的免費框架。有關如何在github頁面上使用它的簡單說明,我遵循。我已經使用過它,並最近提交了一個應用程序,它沒有問題,並且目前在測試飛行Beta測試中處於活動狀態。我也filed an issue on the GitHub project page

回答

0

我聯繫了Apple技術支持,他們幫我解決了這個問題。就像我曾懷疑沒有必要以任何方式改變ResearchKit框架,以使其正常工作。

對我來說,問題在於我將整個源代碼,測試用例,Xcode項目以及ResearchKit的其餘部分複製到應用程序中。

我必須在早期階段就做到這一點,並沒有意識到。對我有幫助的是去XCode中的構建階段選項卡並查看不同的部分。我的錯誤是我在部分有研究工具框架:鏈接二進制與LIbraries複製束資源。我需要刪除這些。

正確的配置,您可以通過該xcodeproj文件拖動到項目和嵌入二進制將剛上線添加到目標相關得到嵌入框架,構建階段部分。

以下是我更正的配置的屏幕截圖: enter image description here

0

我遇到了這個問題,像你這樣的,我固定它通過:

  • 在ResearchKit在ResearchKit刪除可執行文件
  • 查找info.plist中,這樣做:
    刪除info.plist中的ResearchKit。 或者您可以在這個info.plist中添加Bundle版本,Bundle標識符,Bundle版本,它們應該與您的參數相同info.plist
  • 檢查目標 - 信息 - URL類型,檢查是否存在非法標識
相關問題