Xcode、Pods ProjectName.debug.xcconfig 无法打开文件。错误的目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/55558984/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory
提问by pragmus
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?
当我构建项目时,我看到构建错误:ProjectName.debug.xcconfig unable to open file
. 好久没看明白我的问题,今天我注意了,是哪个目录错了:完全错误:projectName/Pods/Pods...ProjectName.debug.xcconfig unable to open file
哪里Pods
部分重复,所以正确的目录必须是projectName/Pods...ProjectName.debug.xcconfig
如何修复它?
回答by pragmus
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:
Xcode 10.1 在尝试在此处找到的其他建议后 #8091(评论)和在 Xcode 中 Pods.debug.xcconfig 的路径不正确?我发现 Kaspik 的建议有效:
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
编辑 .xcodeproj/project.pbxproj 文件并将 PBXGroup "path = Pods" 更改为 "name = Pods" 源https://github.com/CocoaPods/CocoaPods/issues/8091
updated from: pod reintegrate to: pod deintegrate
更新自:pod reintegrate 到:pod deintegrate
回答by sahiljain
回答by pragmus
Deleting extra files in target->Linked Frameworks and Libraries
solved my problem
删除额外的文件target->Linked Frameworks and Libraries
解决了我的问题