当我尝试在Xcode重构,警告将文件添加到目标的构建阶段中出现此工作区(When I try to

2019-09-16 22:04发布

我看到这条消息,往往当我试图通过重命名重构我的代码:

***.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后唯一正确的工作并重新打开项目。 但它不是事后工作。

Answer 1:

在找到合适的解决方案没有成功,我处理这种情况由主办单位>项目重复删除导出的数据



文章来源: When I try to refactor in Xcode, a warning to add the file to the build phase of the target in this workspace appears