Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

cocoapods

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:

enter image description here

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

enter image description here

enter image description here

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

What's causing this issue?

Thanks for your help!

like image 459
Rob Avatar asked Dec 14 '18 23:12

Rob


1 Answers

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
like image 172
Paul Beusterien Avatar answered Nov 08 '22 10:11

Paul Beusterien