title: Xcode 6 GM won't compile for iOS device, but is fine in simulator - odd error message
body: <p>I have a project that compiled just fine in XCode 6 beta, but now, in the GM, it won't compile for an iOS device, giving the error:</p>
  
  <pre><code>myController.m:393:9: No visible @interface for 'UIDevice' declares the selector 'initialize:'
  </code></pre>
  
  <p>at this line:</p>
  
  <pre><code>if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
  </code></pre>
  
  <p>It still compiles absolutely fine for the simulators; I've also tried these fixes:</p>
  
  <ul>
  <li>Cleaned the whole project and re-built.</li>
  <li>Deleted all Derived Data from ~/Library/Developer/XCode</li>
  <li>Re-installed XCode</li>
  <li>Checked XCode preferences and pointed Command Line Tools location to XCode 6  (XCode 5 is still installed on the machine and it was pointing there)</li>
  </ul>
  
  <p>...but with no luck.  Same error on compilation.</p>
  
  <p>Help!  We're on a tight timescale with iOS8 now approaching, and this is a real headache.</p>
  
  <p>PS: We're also using Cocoapods in the workspace, for what it's worth.</p>