Reputation: 355
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?
Upvotes: 35
Views: 23294
Reputation: 572
Here is temporary solution:
1. Change location type from Relative to Group to Absolute Path.
2. Again locate file.
3. Build ... should be Succeeded.
It works in my project so I hope it helps.
Upvotes: 3
Reputation: 391
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
Upvotes: 39
Reputation: 10065
Is this xcode 4? If so this might apply:
XCode - File not found but build successful
Upvotes: 9