Search code examples
xcode4

Recovering Accidental Storyboard Deletion


I tried looking for the answer but didn't find it.

I accidentally deleted my storyboard in XCode4. Is there anyway that I can retrieve it? I looked in the trash can but there was nothing there.

Thanks for your help!

UPDATE: Even though I deleted the storyboard, I've noticed that the compiler still compiles and runs the program and has all the same UIButtons and UILabels with the correct sizes, text labels, and positioning. All as if it never was deleted! Im guessing that the information is still there somewhere! does anyone know if there is perhaps a copy saved within xcode somewhere that i can used to recreate the storyboard file?


Solution

  • If you really deleted the file (check in the file system, not just in XCode, see Liam's answer below for the location) and it's not in the trash, there are (afaik) really only two options;

    • TimeMachine if you have that running may have a good copy.
    • An undelete utility like Disk Drill or MacKeeper

    When undeleting, the more you use your disk after deleting a file, the less chance of recovery, so if you're really serious, you should install the program on another Mac and move the disk to that for recovery so that you won't overwrite anything.