Xcode报错 The document “xxx.h” could not be saved. The file doesn’t exist.

Posted dev1024

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Xcode报错 The document “xxx.h” could not be saved. The file doesn’t exist.相关的知识,希望对你有一定的参考价值。

记录一个问题

场景:Xcode编辑一个工程时直接在工程内部修改了某个目录的文件夹名字,而后删除了其下的某 .h.m 文件

之后总是提示上述错误且无法强制退出Xcode,clean等操作基本没用

查找本地文件也并未发现被删除的xx.h文件的存在,于是从Xcode工程内又把之前改名的文件夹又改名回去,

这时发现之前本地被删的.h文件又回来了,惊悚之下直接从工程内将该文件夹remove reference、再次删除本地xx.h文件

完成这些后,乖乖的从本地目录先改名再重新导入到工程

以上。

以上是关于Xcode报错 The document “xxx.h” could not be saved. The file doesn’t exist.的主要内容,如果未能解决你的问题,请参考以下文章

升级XCode12.3报错 Building for , but the linked and embedded framework was built for iOS + iOS Simulator

报错 Building for iOS, but the embedded framework ‘xxx.framework‘ was built for iOS + iOS Simulator

The document “Main.storyboard” requires Xcode 8.0

dao 接口定义了一个方法,报错 The method xxx is undefined for the type xxx;

SpringBoot写配置文件报错“The elements [xxx,xxx] were left unbound.“

如何解决 iOS The document “(null)” requires Xcode 8.0 or later. 不能编译的问题