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

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

问题描述

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

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

<块引用>

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

我在 Stack Overflow 上找到了相当多的

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天全站免登陆