How to revert/recover .m file to a previous version? (autosaved blank by mistake and xcode crashed - no Source Control, no Time Machine)

坚强是说给别人听的谎言 提交于 2019-12-04 08:50:02

Oh! I fix it. I've opened the file.m with TextEdit. Then I browse to: File > Revert To> Browse All Versions

It led me to a place with all saved versions of the file, where I could search with a timeline the exact moment I need.

I've find the version previous to the blank/crash moment, and copied the text, paste it at file.m on xcode( also saved, commit it to source control for safety) and everything is ok now. I could recover all my code again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!