无效的捆绑包,捆绑包包含不允许的嵌套捆绑包,包含不允许的文件'框架' [英] Invalid Bundle, The bundle contains disallowed nested bundles, contains disallowed file 'Frameworks'

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

问题描述

我添加了一个共享框架,用于在app和watch扩展程序之间共享代码。后来我删除了共享框架,因为它会导致很多问题。我可以建立
并在iphone上运行我的应用程序并观看。但是当我提交到app store时,我看到了这两个错误:

I added a shared framework to share code between app and watch extension. Later I removed the shared framework since it cause lots of problems. I can build and run my app on iphone and watch. However when I submit to app store, I see these two errors:

错误ITMS-90205:无效的捆绑包。在'xxx WatchKit Extension.appex'的捆绑包'
包含不允许的嵌套捆绑包。

ERROR ITMS-90205: "Invalid Bundle. The bundle at 'xxx WatchKit Extension.appex' contains disallowed nested bundles."

错误ITMS-90206:无效的捆绑包。xxx WatchKit Extension.appex'捆绑包'
包含不允许的文件'框架'。

ERROR ITMS-90206: "Invalid Bundle. The bundle at 'xxx WatchKit Extension.appex' contains disallowed file 'Frameworks'."

我已经尝试了stackoverflow上提到的所有解决方案( this this 这个)它们都不适合我。我该如何修复错误?来自苹果的错误消息实际上并不能说明我应该做些什么。

I have tried all the solutions mentioned on stackoverflow(this , this, this) None of them works for me. How do I fix the error? Errors message from apple really doesn't give a clue what I should to.

推荐答案

我仍然不完全明白导致这个问题的原因,但我偶然发现一个最终解决了问题的答案对我来说。

I still do not fully understand what causes the issue, but I've stumbled upon an answer that has finally solved the issue for me.

https:// github .com / CocoaPods / CocoaPods / issues / 4203

具体来说,mikehouse于2015年10月12日发布的帖子是该问题的解决方案。

Specifically, the post by mikehouse on Oct 12, 2015 was the solution to the the problem.

将以下运行脚本添加到所有嵌入式扩展目标。在我的情况下,我不得不将运行脚本作为构建阶段添加到我的今日扩展和Apple Watch App扩展。

Add the following run script to ALL you embedded extension targets. In my case I had to add the run script as a build phase to my Today extension and my Apple Watch App extension.

cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
if [[ -d "Frameworks" ]]; then 
    rm -fr Frameworks
fi

这篇关于无效的捆绑包,捆绑包包含不允许的嵌套捆绑包,包含不允许的文件'框架'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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