1) Add a run script for your extension target.
cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
if [[ -d "Frameworks" ]]; then
rm -fr Frameworks
fi
2) http://stackoverflow.com/questions/25777958/validation-error-invalid-bundle-the-bundle-at-contains-disallowed-file-fr/25789145#25789145
Set Embedded Content Contains Swift Code: NO for the extension target only.
Credits to my superior who solved the former.