The file “Pods-xxx.xcconfig” couldn’t be opened because there is no such file: /Pods appears twice in my configuration paths

和自甴很熟 提交于 2019-12-23 23:50:49

问题


I have different targets, hence different configurations in my app.

Every time I run pod install, I end up having a debug and a release warning for each configuration, telling me that :

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

/{MyAppPath}/Pods/Pods/Target Support Files/Pods-{MyTarget}/Pods-{MyTarget}.debug.xcconfig

It appears that /Pods is being added twice in the configuration paths (from Info section at project level), and I have no idea why:

But to solve this issue, I simply have to manually select the option that's below, and it's OK:

Then the warning disappears and I am able to build the project again.

What's causing this issue?

Thanks for your help!


回答1:


Listing the answer we worked out in the comments:

  • Run pod deintegrate
  • Back up the {project}.xcodeproj/project.pbxproj file
  • Search for Pods in the file
  • Delete any blocks that include Pods
  • Rerun pod install


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!