New to the Xcode 8 distribution is a module named 'NSUnit' which gets imported into Swift as 'Unit'. This is unfortunate for me as I already have a class named 'Unit'. My Xcode project DOES NOT explicitly include 'Foundation' and yet 'Unit' is imported and produces a name conflict.
How do I configure my Xcode project to avoid the implicit import of 'Foundation'?
For example, if I define Foo.swift to be:
class Foo {
var bar : Unit?
}then I WANT the compilation to fail. If I use Foo.swift in a new Xcode-defined Framework, then it INCORRECTLY compiles. If I compile, from the command line, then 'swift Foo.swift' fails (as expected); if I define a package.swift file and compile with 'swift build' then compilation fails (as expected). So, I don't want Foundation implicitly imported.