I'm getting an error when I try to build my MacOS app in Xcode.
Command MergeSwiftModule failed with a nonzero exit code.
error: umbrella for module 'PDFKit' already covers this directory
umbrella header "PDFKit.h"
^
error: inferred submodules require a module with an umbrella
module * { export * }
Most of my Swift files have:
import Cocoa
import Quartz
I'm using PDFKit a lot, so I'm guessing it's something to do with importing and referencing the headers. The error occurs on Xcode 11.1 and 11.2.
I have tried a Clean Build, without success. There are other threads about this, such as this one, which seem to suggest that it's a non-specific, intermittent problem.