Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 473
pragmus Avatar asked Apr 07 '19 12:04

pragmus


2 Answers

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

like image 187
pragmus Avatar answered Oct 23 '22 17:10

pragmus


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 
like image 23
Ucdemir Avatar answered Oct 23 '22 19:10

Ucdemir