Xcode: Restore a complete project from a snapshot?

Today I play a little with the Xcode snapshot function, and I wonder if I can recreate the full project from the snapshot if all the code is lost.

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

I also wonder if pictures were saved. I have not already found in the project folder.

+5
source share
5 answers

Go to the Projects tab in Xcode Organizer and select your project. You should see all the pictures taken. Select the snapshot you want to restore and select Export Snapshot to save it to disk. You export to disk your "restored" version of your project.

I agree that systems like SVN and Git are far superior to Xcode's snapshot mechanism for version control. However, the snapshot mechanism can be very useful. For example, I just made changes to the project. Before making changes, Xcode asked me if I want to take a picture. After the change, it turned out that I did not want to make this change, and therefore I used this mechanism to restore the project to its previous state.

+17

Xcode , CVS, SVN Perforce ( Xcode)?

: , .

+4

:

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

.

+3

. git. xcode git, , .

, , git, howtos git repo:

Using git with an existing Xcode project

And then remember to add the .xcodeproj directory, and everything should be a little smoother.

I really don't like Linus Torvald, but git is the best VCS I've ever come across.

+1
source

All Articles