The file “Pods-***.debug.xcconfig” couldn’t be opened because there is no such file.

巨型仙人掌🌵

前言:

切换分支的过程中发现本地变更了2598个文件,然而只是在没有任何待提交代码的基础上切换分支,一下子冒出来pod组件的.xcconfig等各种文件让再次提交,然后我就忽略掉了这些待提交的代码。切回原分支时,原有的分支就开始报错,pod更新本地依然无果,问题就这样了。

错误提示:

The file “Pods-******.debug.xcconfig” couldn’t be opened because there is no such file.


持续修改中……

debug失败,clean code依然失败。


搜索之后处理方式如下:

1Run pod deintegrate

2、Back up the {project}.xcodeproj/project.pbxproj file

3、Search for Pods in the file

4、Delete any blocks that include Pods

5、Rerun pod install

按照上述方法更新完成之后会发现只有{project}.xcodeproj/project.pbxproj 文件发生变动,映射的key在变,其余都不变,运行程序->build成功->run success。(暂存)储存这个变动文件,项目无任何变动,再次执行会发现,项目又OK了!!!奇哉!

处理方法参照stackoverflow :

https://stackoverflow.com/questions/53788055/the-file-pods-xxx-xcconfig-couldn-t-be-opened-because-there-is-no-such-file

附加project.pbxproj 文件的简单介绍:

//www.greatytc.com/p/e82ec6a56fc2

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。