简体   繁体   English

PBXCp错误:/…/Pods/Pods.debug.xcconfig:没有这样的文件或目录

[英]PBXCp Error : /…/Pods/Pods.debug.xcconfig: No such file or directory

I have taken checkout of project and getting error as : 我已检出项目,并收到以下错误消息:

PBXCp Error : /.../Pods/Pods.debug.xcconfig: No such file or directory

Why is this so? 为什么会这样呢? Also what does PBXCp mean? PBXCp又是什么意思?

This is same Pods issue I'm facing. 这是我面临的相同Pod问题

屏幕截图错误

Some possible solutions: 一些可能的解决方案:

  1. Try relaunching Xcode. 尝试重新启动Xcode。
  2. Close Xcode, run pod install (If there's an update waiting for CocoaPods, update it); 关闭Xcode,运行pod install (如果有更新等待CocoaPods,请更新它); then, open it again. 然后,再次打开它。 Xcode might have failed to pick up changes while it is open. Xcode打开时可能无法获取更改。
  3. Check that the xcconfig files are set in your project to the CocoaPods generated xcconfig files. 检查您的项目中是否将xcconfig文件设置为CocoaPods生成的xcconfig文件。 Goto Project > Info > Configurations 转到Project > Info > Configurations

And remember, always open workspace (.xcworkspace) file. 请记住,请始终打开工作区(.xcworkspace)文件。

PBXCp is a build utility; PBXCp是一个构建实用程序; it copies files. 它复制文件。

Your error is caused by it trying to copy a file, and not finding the file at the expected location. 您的错误是由于它试图复制文件而不是在预期位置找不到文件引起的。

I'm getting this error as I try to build an extension for an App that is not building; 我在尝试为未构建的应用构建扩展时遇到此错误; PBXCp is trying to install the extension, which did build properly, into an app bundle that doesn't exist, which fails. PBXCp尝试将扩展程序(已正确构建)安装到不存在的应用程序捆绑包中,此捆绑包将失败。

Since you're using CocoaPods, the advice on reinstalling is good. 由于您使用的是CocoaPods,因此有关重新安装的建议很好。 You could also be getting this error if you have a lot of compile steps that depend on one another; 如果您有许多相互依赖的编译步骤,则也可能会收到此错误; try building your project scheme-by-scheme, once, and that might at least get bundle directories into all the places they're needed. 尝试一次按方案构建项目方案,这至少可以将捆绑包目录放到所需的所有位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode,Pod ProjectName.debug.xcconfig 无法打开文件。 目录错误 - Xcode, Pods ProjectName.debug.xcconfig unable to open file. Wrong directory 错误:在搜索路径中找不到包含的文件“Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig”(在目标“Runner”中) - error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner') PBXCp错误没有这样的文件或目录 - PBXCp error no such file or directory PBXCp Error..Storyboard:没有这样的文件或目录 - PBXCp Error..Storyboard: No such file or directory CocoaPods的Pods.xcconfig与现有的冲突 - CocoaPods' Pods.xcconfig conflicts with existing ones 安装 Cocoapods / Pods 时出现调试错误? - Getting a debug error when installing Cocoapods / Pods? 调试配置文件(.xcconfig) - Debug configuration file (.xcconfig) 错误:无法加载文件列表的内容:'/Target Support Files/Pods-xx/Pods-xx-frameworks-Debug-input-files.xcfilelist'(在目标'xx'中) - error: Unable to load contents of file list: '/Target Support Files/Pods-xx/Pods-xx-frameworks-Debug-input-files.xcfilelist' (in target 'xx') Xcode未检测到Pods目录 - Xcode not detecting Pods directory 目标...覆盖在 Pods/Pods.xcconfig 中定义的 OTHER_LDFLAGS 构建设置 - The target ... overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM