Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve replaced file in xcode

Tags:

xcode

xcode4.3

I accidentally replace one of the .h file in Xcode.Thus the current .h file is empty. Is there anyway i can retrieve it back as it is alot of work.

please kindly provide me with a solution.

Thank you.

like image 794
user2402681 Avatar asked May 22 '13 03:05

user2402681


2 Answers

finally I got my file back. my case, I lost my history of mainStoryboard. (couldn't get any history in Xcode)

solution : open your "file" as "textEditor" -> "Revert to" -> "previous save"

like image 42
Energy Avatar answered Oct 16 '22 19:10

Energy


Xcode saves local history of the files but it provides no viewer to see them. You have to open the file with textedit and go "File", "Back to" or "Revert document option" and you will see all the previous revisions.

like image 149
NaEs Avatar answered Oct 16 '22 21:10

NaEs