Xcode 6 Refactor : Can only refactor C and Objective C code

xcode6

Solution

If you want to rename a local variable within a method or function and just want to rename all occurrences within that function, try this...

Click on the variable and leave your mouse there for a moment.... A down arrow will appear just to the right of the variable name. Click on that down arrow and choose "Edit All In Scope"

Problem

I'm getting the above error trying to rename an array. Is there any other way? Trying this ``` Right click on variable -> Refactor -> Rename ``` I'm sure there has to be another way?

Original source