Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accidentally deleted file in Xcode

Tags:

xcode

I accidentally had one of my files selected in a project in Xcode and pushed delete and it was deleted. Anyone know how to recover it? It won't let me undo. Please help.

like image 350
NickyNick321 Avatar asked Jun 18 '15 20:06

NickyNick321


People also ask

Are permanently deleted files recoverable?

When a file is permanently deleted from the Recycle Bin, it still resides on the hard drive until it's overwritten with new data. Therefore, a data recovery tool can be used to restore some or all of the data.


1 Answers

The file itself is not deleted, it is simply removed from the Project Navigator. To add it back, go to File -> Add files to "projectName" and select the missing file, after having navigated to the project's folder if needed. Or simply hit cmd+z

like image 78
Tommy C. Avatar answered Nov 09 '22 08:11

Tommy C.