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.
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.
If your project is under Git , and you committed your last version to Git , you can revert to last version.
Else, if you have Time Capsule and you enabled it, you can revert to older time of the document.
Last, if you have none of the above and you have no luck with Cmd + Z , then you have to rewrite it.
git
. It could be subversion
too. Any supported source code control will work. And don't forget about Xcode snapshots. If those are enabled that would be another option to retrieve the file. –
Serilda 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.
main.swift
which Xcode silently overwrote when adding a target. It was only 120 Lines but was still a good few hours work that I was not keen to recreate! Thank you! –
Burletta If your project is under Git , and you committed your last version to Git , you can revert to last version.
Else, if you have Time Capsule and you enabled it, you can revert to older time of the document.
Last, if you have none of the above and you have no luck with Cmd + Z , then you have to rewrite it.
git
. It could be subversion
too. Any supported source code control will work. And don't forget about Xcode snapshots. If those are enabled that would be another option to retrieve the file. –
Serilda © 2022 - 2024 — McMap. All rights reserved.