验证错误:捆绑包包含不允许的文件“框架" [英] Validation Error: The bundle contains disallowed file 'Frameworks'

查看:23
本文介绍了验证错误:捆绑包包含不允许的文件“框架"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了与 这个家伙这个家伙这个人(注意,我实际上是不确定他们是否都是男人,本身).

I'm having the same issue as this guy, this guy, and this guy (nota bene, I'm actually not sure if they're all guys, per se).

他们最终都找到了自己的解决方案,但没有一个适用于我的问题.我在我的 iOS 8 应用程序中使用 Xcode 6.1,其中包含一个扩展.应用程序和扩展程序都依赖于一个包含的框架.当我尝试将应用程序提交到应用商店时,我收到的验证警告是 ERROR ITMS-9000: Invalid bundle. The bundle at 'xxxxx.appex' contains disallowed file 'Frameworks'".

They all ended up finding their own solutions, but none of them apply to my issue. I'm using Xcode 6.1 in my iOS 8 app with an included extension. The app and the extension both rely on an included framework. When I try to submit the app to the Store, the validation warning I get is "ERROR ITMS-9000: Invalid bundle. The bundle at 'xxxxx.appex' contains disallowed file 'Frameworks'".

我什至找不到名为 Frameworks 的文件.共享框架应该保存在/Library/Frameworks,这是Apple 推荐的保存位置.该项目还使用了 Cocoapods,这让我觉得它是唯一可能的罪魁祸首,因为它在其配置文件中引用了 $FRAMEWORK_PATH(尽管构建文件夹不包含具有该名称的文件或文件夹).

I can't even find a file called Frameworks. The shared framework is supposed to be saved at /Library/Frameworks, which is Apple's recommended save location. The project also uses Cocoapods, which strikes me as the only other possible culprit, since it has references in its configuration files to $FRAMEWORK_PATH (though the build folder doesn't include a file or folder with that name).

推荐答案

适合未来的观众,这里是修复:

OK for future viewers here's the fix:

当您创建自己的 iOS 框架(我使用的是 Xcode 6.1)时,最终产品会在框架包本身中包含一个Frameworks"文件夹.即 MyFramework.framework/Frameworks.即使您不指定复制文件/嵌入框架构建阶段,也会发生这种情况.

When you create your own iOS framework (I'm using Xcode 6.1) when you build it the final product contains a 'Frameworks' folder in the framework bundle itself. i.e. MyFramework.framework/Frameworks. This happens even if you don't specify a copy files/embed frameworks build phase.

您需要做的是进入您的框架包,找到空的框架文件夹并将其删除.这不应以任何方式影响您的应用程序的功能.然后构建您的应用并检查嵌入式框架是否没有计划中的 Frameworks 文件夹.

What you have to do is to go into you framework bundle, find the empty frameworks folder and delete it. This should not affect your app's functionality in any way. Then build your app and check that the embedded framework doesn't have a Frameworks folder as planned.

您的存档现在不应包含有问题的文件夹,错误应该消失了!

Your archive should now not contain the offending folder and the error should be gone!

这篇关于验证错误:捆绑包包含不允许的文件“框架"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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