Validation Error: The bundle contains disallowed nested bundles

…衆ロ難τιáo~ 提交于 2019-11-28 08:06:08

问题


As a followup to my other question, I'm continuing to have issues submitting my iOS 8 app (which includes a Sharing Extension and a framework target). On a submission attempt I receive the above error message. Others with my issue (as pointed out in the afore-linked question) have the same issue, but resolved it in ways that aren't relevant to my case.

The error message implicates my Sharing Extension target, which links to a framework that I wrote, which is shared between the Extension and the app. I'm pretty sure Apple was clear that I'm allowed to use frameworks in Extension targets (in fact, it's preferred!). So what other causes might there be for this error?


回答1:


Well, the answer seems simple enough: in the Extension target I was embedding the framework (Build Phases > Embed Framework). Once I removed that setting, everything works fine.

Sigh.




回答2:


I had to remove (Build Phases > Embed Pods Frameworks) From the today excitation.

Was able to upload to appstore but this bring other problem the today excitation is not working

dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking




回答3:


For me, Aaron's answer was only half the answer. After removing my framework from my extension's Embedded Binaries, I had to add it to my extension's Linked Frameworks and Libraries. (Both can be found in the extension's General tab.)



来源:https://stackoverflow.com/questions/27160624/validation-error-the-bundle-contains-disallowed-nested-bundles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!