title: How can I enforce a compiler warning or error for namespace conflicts?
body: <p>Consider I have the following:</p>
  
  <ul>
  <li><code>FrameworkA</code>, which defines class <code>Foo</code></li>
  <li><code>FrameworkB</code>, which also defines class <code>Foo</code></li>
  <li>A file in <code>FrameworkA</code> which imports <code>FrameworkB</code></li>
  </ul>
  
  <p>How can I get Xcode to generate either a warning or error on any line that makes references to <code>Foo</code> without using the namespace qualifier?</p>
  
  <p>For example:</p>
  
  <pre><code>let a = FrameworkA.Foo() // fine, no warning or error
  let b = FrameworkB.Foo() // fine, no warning or error
  let c = Foo()            // at a minimum, a warning
  </code></pre>
  
  <hr>
  
  <p>I understand completely that if we are in <code>FrameworkA</code>, then the third example is equivalent to <code>FrameworkA.Foo()</code>, but I would like for Xcode to generate a warning or error.</p>
  
  <p>Consider the scenario when class <code>Foo</code> has existed in <code>FrameworkB</code> for a long time, and the line of code in question has always intended to point at the class <code>Foo</code> defined in <code>FrameworkB</code>, but at some later point in the future, someone added class <code>Foo</code> into <code>FrameworkA</code> for some reason.  This would change the behavior of the line in the file.</p>
  
  <p>I would like Xcode to generate compile time warnings or errors any time something defined in multiple frameworks imported into a file is used without the namespace being explicitly declared.</p>
  
  <p>Is there a way?</p>