Reputation: 6278
Select a method
Edit > Refactor...
Select "Move Up"
I get the following error a lot.
Refactoring Error http://synapticmishap.co.uk/aSO/RefactoringError.jpg
Any ideas on how I can get Xcode to, well, do its job?
Solution Summary
Option 2 that Peter suggests below did the trick. I can't believe that
a) I didn't try this Smacks head
and
b)
Xcode couldn't find a sane way of saying "Don't select the whole method!"
Upvotes: 1
Views: 491
Reputation: 9429
I tried refactoring a class (implementation) after I renamed the containing file manually and got the same error. Once I renamed the file back to its original name I was able to refactor.
Upvotes: 0
Reputation: 96373
Two possibilities:
Upvotes: 1