问题
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