当我尝试通过重命名来重构代码时,我经常看到此消息:
***.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.
有时,重构仅在重新启动 Xcode 并重新打开项目后才有效。但是之后就不行了。