位于"my_app.app/ResearchKit/ResearchKit/Info.plist"的捆绑软件不包含捆绑软件可执行文件 [英] The bundle at 'my_app.app/ResearchKit/ResearchKit/Info.plist' does not contain a bundle executable

查看:70
本文介绍了位于"my_app.app/ResearchKit/ResearchKit/Info.plist"的捆绑软件不包含捆绑软件可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新XCode版本:8.2iOS目标:9

希望有人可以向我指出这不是错误.很简单,我提取了researckKit的最新稳定版本,然后将.xcodeproj文件拖放到了新的iOS项目中,并添加了嵌入式二进制文件.我创建了几个在模拟器中看起来不错的步骤.我的应用程序构建良好,甚至存档也可以通过OK验证.上传到应用程序商店是可以的,但随后我收到来自应用程序商店的电子邮件,其中有6个条目看起来差不多,对于ReserachKit框架中的6个不同的 Info.plist 文件:

意外的CFBundleExecutable键-位于的包'my_app.app/ResearchKit/ResearchKit/Info.plist'不包含捆绑可执行文件.如果此捆绑包故意不包含可执行文件,请考虑将CFBundleExecutable密钥从其可执行文件中删除Info.plist并使用BNDL的CFBundlePackageType.如果这个捆绑包是第三方框架的一部分,请考虑与解决此问题的更新框架.

我发现了

Update XCode Version: 8.2 iOS Target: 9

Hopefully some can point out to me that this is not a bug. Very simply I pulled the latest stable version of researckKit, and I dropped the .xcodeproj file into my new iOS project, added the embedded binary. I created a couple steps that look fine in the simulator. My app builds fine and even the archive validates OK. Upload to app store is fine, but then I am receiving emails from the app store with 6 entries all look about the same, for 6 different Info.plist files inside the ReserachKit framework:

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.

I have found quite a few answers on Stack Overflow, many people agreeing to do what was suggested in the error message: simply remove the CFBundleExecutable Key from the .plist files. I tried that, but then my archive will not even validate with the following error:

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.

** UPDATE **

Granted I pulled a fresh version of the ResearchKit framework from github for this project. So instead I just tried a copy of a version of ResearchKit from another Xcode Project that I have successfully deployed on the app store recently, i figure if it worked for that app it should go through for this app. But Alas, I am getting the same email error from the App Store about the Unexpected CFBundleExecutable Key.

Again this is an apple-supported free framework. There are simple instructions for how to use it on the github page, which I followed. I have used it before and submitted an app with this framework recently, which had no problems and is currently active in Test Flight Beta Testing. I also filed an issue on the GitHub project page.

解决方案

I contacted Apple Technical Support and they helped me solve the problem. Like I had suspected it was NOT necessary to alter the ResearchKit framework in any way for this to work correctly.

For me, the issue was that I was copying the entire source code, test cases, Xcode projects, and the rest of ResearchKit into the app.

I must have done this at an early step and didn't realize. What was helpful for me was to go to the Build Phases tab in XCode and look in the different sections. My error was that I had the researchkit framework in the sections: Link Binary With LIbraries and Copy Bundle Resources. I needed to remove those.

The correct configuration, which you get by dragging the xcodeproj file to the project and embedding the binary will just add on line to the Target Dependencies and Embed frameworks sections in Build Phases.

Here is a screenshot of my corrected configuration:

这篇关于位于"my_app.app/ResearchKit/ResearchKit/Info.plist"的捆绑软件不包含捆绑软件可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆