验证错误:无效的捆绑包.位于 ... 的包包含不允许的文件“Frameworks" [英] Validation Error: Invalid Bundle. The bundle at … contains disallowed file 'Frameworks'

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

问题描述

当我尝试在 Xcode 6.1 GM 上使用 Today 扩展提交我的应用程序时,我收到了这 2 个错误.我试过 两者这些解决方案,但都没有工作:

I'm getting these 2 errors when I try to submit my app with a today extension on Xcode 6.1 GM. I've tried both of these solutions but neither of them work:

Validation Error: Invalid Bundle. The bundle at … contains disallowed file 'Frameworks'
Validation Error: Invalid Bundle. The bundle at … contains disallowed nested bundles

应用程序和今天的扩展都是用 Swift 编写的.我已经尝试清理项目并删除 Xcode 派生数据,但我仍然遇到相同的 2 个错误.有什么想法吗?

Both the app and the today extension are written in Swift. I've tried cleaning the project and deleting Xcode derived data but I'm still getting the same 2 errors. Any ideas?

推荐答案

当然我在发帖 30 分钟后找到了答案.我的问题是我不小心将 AlamoFire 框架添加到我的扩展目标的构建阶段中的复制文件"部分.删除这个修复了一切.

Of course I found the answer 30 minutes after posting. My problem was I accidentally added the AlamoFire framework to the "Copy Files" section in Build Phases of my extension target. Removing this fixed everything.

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

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