Invalid Bundle, The bundle contains disallowed nested bundles, contains disallowed file 'Frameworks' Invalid Bundle, The bundle contains disallowed nested bundles, contains disallowed file 'Frameworks' ios ios

Invalid Bundle, The bundle contains disallowed nested bundles, contains disallowed file 'Frameworks'


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

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

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 Frameworksfi


The "ITMS-90206" error was resolved in this post: Validation Error: Invalid Bundle. The bundle at ... contains disallowed file 'Frameworks'

The setting needs to be changed from Yes to No within the Build options of your WatchKit Extension:

Embedded Content Contains Swift Code: No


The above didn't work for me.

Embedded Content Contains Swift Code: NO

Didn't really do anything for me.

I experienced this issue using a dynamic framework.My dynamic framework contained other dynamic frameworks which made it OKto have:

Embedded Content Contains Swift Code: YES

And instead having the other dynamic frameworks set it to No instead.But instead of that I had to set

Always Embed Swift Standard Libraries: NO

under Build Phases.

Having this one set to YES generated the frameworks folder causing upload to ITC fail.


matomo