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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:36:00  来源:igfitidea点击:

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

xcodepod

提问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 fileWhere Podspart duplicated, so correct directory must be as projectName/Pods...ProjectName.debug.xcconfigHow 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

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

从 Pods 文件夹中删除重复项?rom xcode 项目:

enter image description here

在此处输入图片说明

回答by pragmus

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

删除额外的文件target->Linked Frameworks and Libraries解决了我的问题