Search code examples
xcodecocoapods

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?


Solution

  • In 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