GeeGoldz
GeeGoldz

Reputation: 187

Is it possible to find a deleted xcode file?

I highlighted a line of code I was going to delete after building and running the app. After I ran the app, the code was still highlighted so I pressed delete and my entire class was deleted... I am an idiot...

The file did not go to the trash so I thought xcode might store it somewhere, does anyone know if it is possible to retrieve this file?

Upvotes: 1

Views: 4152

Answers (2)

Elden
Elden

Reputation: 670

I used the Disk Drill to restore mistakenly deleted files.

check http://www.cleverfiles.com/

Upvotes: 0

justin
justin

Reputation: 104698

you can easily revert if you are using version control. if you are not using it (yet), you should -- worse things happen.

if you don't use version control and you use xcode's snapshots... you could look there. you may also be able to find it using Time Machine.

but... add "learn version control" to your #1 thing to learn this week for development.

Upvotes: 2

Related Questions