title: The Selection is Not a Type that Can Be Renamed Xcode 7
body: <p>Trying to rename a class by selecting the class name (<code>ViewController</code>) after <code>@interface</code>:</p>
  
  <pre><code>@interface ViewController : UIViewController
  </code></pre>
  
  <p>Right clicking, selecting Refactor -> Rename results in the following error alert window:</p>
  
  <p><a href="https://i.stack.imgur.com/B0gWA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B0gWA.png" alt="enter image description here"></a></p>
  
  <p>This worked just fine in Xcode 6, is this some sort of regression? I tried <a href="https://stackoverflow.com/a/19816839/347339">this solution for Xcode 4</a> to no avail. Anyone know of any work arounds?</p>