Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory
XcodeCocoapodsXcode 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
Solution 4 - Xcode
Deleting extra files in target->Linked Frameworks and Libraries
solved my problem
Solution 5 - Xcode
Do the following
- Delete .xcworkspace file
- Go to project build phases - delete Check Pods Manifest.lock and Embed Pods Framework section
- Remove Pods folder from the left project navigator
- Remove Pods folder from the project directory
- Delete everything related to pods except Podfile
- 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.