我常常看到这一信息,因为我试图通过重新命名来重启我的法典:
***.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.