3

I am seeing this message, too often when I try to refactor my code by renaming:

***.h is not part of the build phase of any targets in this workspace and so can’t be refactored. Add the file to the build phase of a target in this workspace, or make a selection in another file.

Sometimes, refactoring works only right after relaunching Xcode and reopen the project. But it's not working afterwards.

petershine
  • 3,190
  • 1
  • 25
  • 49
  • 1
    Not succeeding in finding the right solution, I dealt with this situation by repeatedly deleting Derived Data in Organizer > Projects – petershine May 15 '12 at 15:44
  • I didn't know about that little gem. That's certainly fixed it for me, at least for now. Thanks! – DonnaLea May 25 '12 at 05:58

1 Answers1

3

Not succeeding in finding the right solution, I dealt with this situation by repeatedly deleting Derived Data in Organizer > Projects

petershine
  • 3,190
  • 1
  • 25
  • 49