tags:

views:

468

answers:

2

Hello

today I am playing a bit with the Xcode snapshot feature and I wonder if I could recreate a complete project from a snapshot if all code is lost.

It seems to me in the Snapshot-Manager I can only see snapshots of the current project, not of all projects. So if my projectfile is lost or damaged is there anyway to recover my files from a snapshot?

I also wonder were the snapshots are saved. Not in the project folder I found out already.

+2  A: 

Before trusting Xcode snaphot feature too much, may I suggest you to consider source code management with CVS, SVN or Perforce (integrated in Xcode)?

For me, the main usage of snapshot is during a refactoring session: You create a snapshot before applying refactoring changes, so that you are able to revert your modifications.

mouviciel
+2  A: 

Have a look in your home folder:

~/Library/Application Support/Developer/Shared/SnapshotRepository.sparseimage

Within this you'll find the project snapshots.

But, you're better off using a proper source control system

Abizern