我看到这条消息,往往当我试图通过重命名重构我的代码:
***.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后唯一正确的工作并重新打开项目。 但它不是事后工作。