In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error:
[build_pat
I had the same issue and none of the suggested answers helped in my case so I'm leaving this here in case someone has the same problem.
I had added a "Run script" in "Build phases" but ended up removing it and that's when I started getting the error.
My solution ended up having to clean the project, rebuild my framework and then my app project built correctly.