Invalid bundle... contains disallowed file 'frameworks'

I found out the build I was trying to upload was archived in Xcode beta 6 :/ Upgrading to the GM seed solved my problem. Also make sure Embedded Content contains swift code is set to "NO" in your build settings for your extension and set to "YES" in your build settings for your containing app.


Just to add to this. The Embedded Content contains swift code worked for me as well. Additionally, I had an extension and I was linking to frameworks in that extension. I was also copying the frameworks to the extension, aka creating a Frameworks folder. Because that's what you need to do right? Well, I was definitely wrong. I guess the extension's search path knows to look in the containing app's Framework's folder via the Extension Target's Runpath Search Paths setting in Build Settings

@executable_path/../../Frameworks

So what was unclear to me, and is now clear is that you don't copy the Frameworks (Copy Build Phase) into the extension. It uses them from the containing application. Which is also why, if you want to use your Frameworks in your extension you need to be sure that the Build Settings > Require Only App-Extension-Safe API is set to Yes


I face this issue in Xcode - 11. In my project I have custom framework which was add as Embed & sign, and it has to be Do not embed. See the picture below.enter image description here