With Xcode 12 beta 3 calling:
import AVFoundation
in a Swift file causes the build to fail. The error text includes:
Failed to build module 'AVFoundation' from its module interface; the compiler that produced it, [...], may have used features that aren't supported by this compiler.
Is there a workaround? (reformulating as Q&A on SO to aid other developers on this beta)