当我尝试通过重命名来重构代码时,我经常看到此消息:
***.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 并重新打开项目后才起作用。但之后就不行了。
由于没有成功找到正确的解决方案,我通过反复删除“管理器”>“项目”中的派生数据来处理这种情况
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)