In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error:
[build_pat
In my case problem was caused by remove headers script in Build Phases
function removeHeaders() { find $BUILD_ROOT/... -name '*.h' -exec rm -f {} \; } removeHeaders
Deleting this script fixed the problem.