In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error:
[build_pat
I found that with the New Swift Build System and Parallelize Build turned on the scheme I would get errors like in this question. The solution was to link to frameworks that had been imported in the swift source files. (I think previously the app would build because it just happened that the frameworks were linked to something built previously in the serial build queue).
I wrote a script to go through all the imports in all the targets in a workspace and make sure that their frameworks have been linked to in that target.
https://github.com/Jon889/SwiftImportChecker