PBXCp错误没有这样的文件或目录 [英] PBXCp error no such file or directory

查看:125
本文介绍了PBXCp错误没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此PBXCp错误,即使我已检查并且文件在那里,也没有此类文件或目录.尝试进入目标,然后复制捆绑资源从那里删除了有问题的文件,然后再次添加并不能解决问题.感谢您的帮助.

I'm getting this PBXCp error saying there is no such file or directory even though i checked and the file is there. Tried going into targets and Copy Bundle Resources deleted the file in question from there and adding it again did not solve the issue. Any help is appreciated.

推荐答案

PBXCp是一个构建实用程序;它复制文件.

PBXCp is a build utility; it copies files.

您的错误是由于它试图复制文件而无法将文件放在指定的位置引起的.

Your error is caused by it trying to copy a file, and not being able to put the file at the indicated place.

例如:我在尝试为未构建的应用程序构建扩展时遇到此错误;我的问题是PBXCp试图将确实正确构建的扩展安装到不存在的应用程序捆绑包(实际上是目录)中,从而失败.

For instance: I'm getting this error as I try to build an extension for an App that is not building; my issue was that PBXCp is trying to install the extension, which did build properly, into an app bundle (essentially, a directory) that doesn't exist, which fails.

由于您正在使用CocoaPods,因此请检查是否需要更新或重新安装任何内容.如果您使用多种方案,那么您也可能会收到此错误,并且在以后的步骤中需要一个构建的结果.如果第一个构建失败,则在以后的构建步骤中将发生此错误.

Since you're using CocoaPods, check to see whether anything needs updating or reinstalling. You could also be getting this error if you are using multiple schemes, and the results of one build are needed by a later step. If the first build fails, this error will occur in the later build step.

这篇关于PBXCp错误没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆