The document could not be saved. The file doesn’t exist.

简介: 有时候莫名其妙的pod update之后(可能是拖拽文件到pod子项目导致的,具体忘了,出现问题的时候已经忘了之前干啥了。。。囧~),然后某一个或者几个文件就不能编辑保存了,编译不过,如下:The document could not be autosaved.

有时候莫名其妙的pod update之后(可能是拖拽文件到pod子项目导致的,具体忘了,出现问题的时候已经忘了之前干啥了。。。囧~),然后某一个或者几个文件就不能编辑保存了,编译不过,如下:

The document could not be autosaved. The file doesn’t exist.

img_8f6aaf5bd544600b07b7307a86059909.jpe
8f6aaf5bd544600b07b7307a86059909.jpg

而且,这个文件并没有路径显示:

img_f00e9c6ce487bda4aba713a08cd33b24.jpe
f00e9c6ce487bda4aba713a08cd33b24.jpg

从左侧栏右键Show in Finder,之后可以看到该文件在项目根目录下面的ProjectRootPath/Pods/Headers/Public/IMSDK/QCIMChatRoomVC.h

各种尝试不好使啊,重新pod也不管用,最终将子项目的该文件覆盖copy到上面的pods路径(ProjectRootPath/Pods/Headers/Public/IMSDK/QCIMChatRoomVC.h)下面,好使了。

以上,记一笔,出现好几次了,每次都是莫名其妙的出现了,然后莫名其妙的好了。。。


有时候上面的办法并不好使,怎么替换就是不好使。可以尝试这样:

宗旨还是替换,找到该文件实际所在的位置,copy一份出来(标记为A),将该文件的旧版本找一个覆盖这个文件,pod update 然后编译,或出错,没事儿,whatever。。。

然后将A再覆盖回去,pod update 然后编译!

Good Luck~~~

喜欢我的可以关注收藏我的个人博客:RobberJJ

目录
相关文章
|
11月前
“Could not find suitable distribution for Requirement.parse(‘XXXX‘)”的问题
“Could not find suitable distribution for Requirement.parse(‘XXXX‘)”的问题
206 0
error: Your local changes to the following files would be overwritten by merge
error: Your local changes to the following files would be overwritten by merge
|
9月前
|
程序员 Go API
译|Don’t just check errors, handle them gracefully(一)
译|Don’t just check errors, handle them gracefully
50 0
|
9月前
|
Java Go API
译|Don’t just check errors, handle them gracefully(二)
译|Don’t just check errors, handle them gracefully(二)
62 0
|
10月前
Newline required at end of file but not found.
Newline required at end of file but not found.
102 0
Newline required at end of file but not found.
|
安全 iOS开发 MacOS
“XXXXX” is damaged and can’t be opened. You should move it to the Trash 解决方案
“XXXXX” is damaged and can’t be opened. You should move it to the Trash 解决方案
447 0
Cannot find source code based button in SE24 - modification assistant
Cannot find source code based button in SE24 - modification assistant
127 0