80

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?

Jonas
  • 121,568
  • 97
  • 310
  • 388
pragmus
  • 3,513
  • 3
  • 24
  • 46

11 Answers11

176

Xcode 10.1 After trying other suggestions found here #8091 (comment) and at 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

David Sanford
  • 735
  • 12
  • 26
pragmus
  • 3,513
  • 3
  • 24
  • 46
19

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
Ucdemir
  • 2,852
  • 2
  • 26
  • 44
5

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

enter image description here

sahiljain
  • 2,215
  • 1
  • 29
  • 39
2

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

pragmus
  • 3,513
  • 3
  • 24
  • 46
1

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.

sahiljain
  • 2,215
  • 1
  • 29
  • 39
1

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

Ahmedakhtar11
  • 1,076
  • 11
  • 7
0

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

Luciano Dourado
  • 473
  • 4
  • 14
0

Clean build folder. Then use the code following:

pod reintegrate 
pod install
Sagittarius
  • 355
  • 3
  • 6
0

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.

Roger Oba
  • 1,292
  • 14
  • 28
0

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!

Vishesh Gupta
  • 165
  • 1
  • 5
0

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

Yogesh Tatwal
  • 2,722
  • 20
  • 43