Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory

XcodeCocoapods

Xcode Problem Overview


When I build project, I see build error: ProjectName.debug.xcconfig unable to open file. I couldn't understand my problem for a long time, but today I take attention, what directory is wrong: full error: projectName/Pods/Pods...ProjectName.debug.xcconfig unable to open file Where Pods part duplicated, so correct directory must be as projectName/Pods...ProjectName.debug.xcconfig How to fix it?

Xcode Solutions


Solution 1 - Xcode

Xcode 10.1 After trying other suggestions found here #8091 (comment) and at https://stackoverflow.com/questions/27109476/incorrect-path-for-pods-debug-xcconfig-in-xcode I found that Kaspik's suggestion worked:

pod deintegrate
pod install

edit the .xcodeproj/project.pbxproj file and change the PBXGroup "path = Pods" to "name = Pods" source https://github.com/CocoaPods/CocoaPods/issues/8091

updated from: pod reintegrate to: pod deintegrate

Solution 2 - Xcode

I have encored with this solution...Here is how I solved

Close Xcode, 
run on terminal "pod install"
open xcode,
clean build folder and run again

Solution 3 - Xcode

Remove the duplicates from the Pods folder ƒrom xcode project here:

enter image description here

Solution 4 - Xcode

Deleting extra files in target->Linked Frameworks and Libraries solved my problem

Solution 5 - Xcode

Do the following

  1. Delete .xcworkspace file
  2. Go to project build phases - delete Check Pods Manifest.lock and Embed Pods Framework section
  3. Remove Pods folder from the left project navigator
  4. Remove Pods folder from the project directory
  5. Delete everything related to pods except Podfile
  6. Do Pod install

This should resolve the problem.

Solution 6 - Xcode

I was able to manage by reopening Xcode, in my case i had already run pod install with the ide open (Xcode 12.0).

Solution 7 - Xcode

Clean build folder. Then use the code following:

pod reintegrate 
pod install

Solution 8 - Xcode

I ran into this issue in CI. Simply running xcodebuild clean fixed it for me. In Xcode that'd be equivalent to cmd + shift + k.

Solution 9 - Xcode

I was getting the same issue, I checked my npm modules was corrupted so I deleted npm modules

And npm install ==> cd iOS ==> pod install.

And the code works smoothly! Happy coding!

Solution 10 - Xcode

Better solution for further this kind of issues $ cd ~/.cocoapods/repos $ git clone https://github.com/CocoaPods/Specs.git master

Solution 11 - Xcode

Run pod repo update first and then you should be able to install pods with yarn install:pods if you're using yarn.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionpragmusView Question on Stackoverflow
Solution 1 - XcodepragmusView Answer on Stackoverflow
Solution 2 - XcodeUcdemirView Answer on Stackoverflow
Solution 3 - XcodesahiljainView Answer on Stackoverflow
Solution 4 - XcodepragmusView Answer on Stackoverflow
Solution 5 - XcodesahiljainView Answer on Stackoverflow
Solution 6 - XcodeLuciano DouradoView Answer on Stackoverflow
Solution 7 - XcodeSagittariusView Answer on Stackoverflow
Solution 8 - XcodeRoger ObaView Answer on Stackoverflow
Solution 9 - Xcode17bcs4133 Vishesh GuptaView Answer on Stackoverflow
Solution 10 - XcodeYogesh TatwalView Answer on Stackoverflow
Solution 11 - XcodeAhmedakhtar11View Answer on Stackoverflow