How to fix error ITMS-90171?

I'm getting this error for all the libswift .dylib when I'm submitting my app to the appstore:


ERROR ITMS-90171: "Invalid Bundle Structure - The binary file myApp.app/frameworks/libswiftCoreLocation.dylib" is not permitted. Your app can't contain standalone executables or libraries, other than the CFBundleExecutable of supported bundles.


I get the same error for

myApp.app/frameworks/libswiftCoreLocation.dylib

myApp.app/frameworks/libswiftCoreGraphics.dylib

myApp.app/frameworks/libswiftUIKit.dylib

myApp.app/frameworks/libswiftCore.dylib

myApp.app/frameworks/libswiftDispatch.dylib

myApp.app/frameworks/libswiftCoreImage.dylib

myApp.app/frameworks/libswiftObjectiveC.dylib

myApp.app/frameworks/libswiftFoundation.dylib

myApp.app/frameworks/libswiftContacts.dylib

myApp.app/frameworks/libswiftDarwin.dylib


The app is buildt with Xcode 7.2.1 and I'm using cocoapods


What have I missed?

How to fix error ITMS-90171?
 
 
Q