Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recovery deleted files from Xcode

I just accidentally deleted some files form Xcode proj , but I am sure I pressed the remove reference only button , but all of my images have deleted from my project and I can't locate them on my hard , is there anyway to recover these images ? there is no sign of images in trash !!!

like image 803
iOS.Lover Avatar asked Jan 15 '12 23:01

iOS.Lover


People also ask

Is it possible to recover deleted files on Mac?

Yes, it is possible to restore deleted files on your Mac. You can easily recover them from the Trash if they have been recently deleted. A Time Machine or other type of backup, the Terminal app, and the undo command can all be used to try to get your data back without using software.

Where do deleted files go on Mac?

On every Mac, deleted files are first sent to the Trash. If the files are also deleted in the Trash, a copy is saved on the hard drive of your device. This copy is not overwritten by other data until later. In other words, even if you've already emptied the Trash, your data is not necessarily lost.


2 Answers

DON'T PANIC AND BE HOPEFUL ,

  • check out your last Device or Simulator build on the Product folder
  • select your file and click reveal in finder
  • then right click on you app file and select Show package content , if you be lucky your lost files would be there
like image 66
Mc.Lover Avatar answered Sep 20 '22 13:09

Mc.Lover


Xcode doesn't move them if you click "Remove References Only." That means if you can't find them on your hard drive now, they're probably lost. Please tell me you were using source control? Or, at the very least, Time Machine?

like image 39
Jesse Bunch Avatar answered Sep 19 '22 13:09

Jesse Bunch