pbxcp问题,找不到文件,但肯定存在

时间:2020-12-02 13:25:53

So I've been working on different images for my app, seeing how it looks, replacing it...all has been well until earlier I replaced a file (checkmark.png) with an updated version I made, now when I build I get pbxcp: checkmark.png: no such file or directory. I have removed the file and re-added multiple times, I've renamed the file and replaced every instance of the file in my code with the updated name. No matter what I can't get rid of this error, all the googling I do ends up with a lot of unanswered posts, some people saying to "Clean" the project, I've tried everything I can and can't get rid of this error. Anyone have any ideas?

所以我一直在为我的应用程序研究不同的图像,看看它的样子,取而代之......直到早些时候我已经用我更新的版本替换了一个文件(checkmark.png),现在当我构建时get pbxcp:checkmark.png:没有这样的文件或目录。我已经删除了文件并重新添加了多次,我已经重命名了该文件并用我更新的名称替换了我的代码中的每个文件实例。无论我无法摆脱这个错误,我所做的所有谷歌搜索最终都有很多未回复的帖子,有些人说要“清理”项目,我已尽力而为,无法摆脱这个错误。有人有主意吗?

3 个解决方案

#1


9  

Is this xcode 4? If so this might apply:

这是xcode 4吗?如果是这样,这可能适用:

XCode - File not found but build successful

XCode - 找不到文件但构建成功

#2


39  

Go to targets in app->built phases->copy bundle resources->remove image in red color and add one u need this will solve your error thanks to DanBroChill

转到app-> built phases中的目标 - >复制捆绑资源 - >删除红色图像并添加一个你需要这将解决你的错误,感谢DanBroChill

#3


3  

Here is temporary solution:

这是临时解决方案:

1. Change location type from Relative to Group to Absolute Path.

1.将位置类型从相对于组更改为绝对路径。

2. Again locate file.

2.再次找到文件。

3. Build ... should be Succeeded.

3.建立......应该成功。

It works in my project so I hope it helps.

它适用于我的项目,所以我希望它有所帮助。

#1


9  

Is this xcode 4? If so this might apply:

这是xcode 4吗?如果是这样,这可能适用:

XCode - File not found but build successful

XCode - 找不到文件但构建成功

#2


39  

Go to targets in app->built phases->copy bundle resources->remove image in red color and add one u need this will solve your error thanks to DanBroChill

转到app-> built phases中的目标 - >复制捆绑资源 - >删除红色图像并添加一个你需要这将解决你的错误,感谢DanBroChill

#3


3  

Here is temporary solution:

这是临时解决方案:

1. Change location type from Relative to Group to Absolute Path.

1.将位置类型从相对于组更改为绝对路径。

2. Again locate file.

2.再次找到文件。

3. Build ... should be Succeeded.

3.建立......应该成功。

It works in my project so I hope it helps.

它适用于我的项目,所以我希望它有所帮助。