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

I'm trying to submit an app with the Xcode 6 GM, and I get this error on validation. The app has an action extension and a dynamic framework that's shared between the extension and the app itself. ...