Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9.1 Refactoring not available

The refactoring menu in Xcode 9.1 is completely greyed out. I wanted to extract a method from existing swift code and got the following screen: enter image description here

Do I have to enabled something special to get access to the new refactoring features?

like image 319
Fabian Avatar asked Nov 21 '17 22:11

Fabian


2 Answers

Try cleaning your Xcode. Also try clearing out derived data and restart Xcode.

Clean Build --> (Command-Option-Shift-K)
Delete DerivedData folder in ~/Library/Developer/Xcode/DerivedData
like image 67
Deep Parekh Avatar answered Sep 27 '22 22:09

Deep Parekh


Refactor option hides if you select version editor.
Thanks @paul

like image 24
Rajneesh071 Avatar answered Sep 27 '22 22:09

Rajneesh071