title: Xcode can only refactor C and Objective-C code. How to rename swift class name in Xcode 6?
body: <p>I have created a new Single View Application Project in Xcode 6 beta version. I want to rename swift class from <code>ViewController.swift</code> to some other name. But when I select Refactor -> Rename, it gives error <code>Xcode can only refactor C and Objective-C code</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/zELdP.png" alt="enter image description here"></p>
  
  <p>Any idea how to rename swift class in Xcode 6?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Finally Xcode 9 is supporting Refactoring for Swift. It took Apple 3 years to add this basic feature. <a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/xcode_9/xcode_9.html#//apple_ref/doc/uid/TP40004626-CH8-SW11" rel="noreferrer">Refactoring</a></p>