I tried to undo changes in my project to the last committed version control state, however, when I clicked βUndo all changesβ, a strange behavior occurred.
The first time, some of the files returned, while others did not. So I pressed the button again, and an advertising message appeared saying that it was necessary to save "xcworkspace" again. I clicked well, and half of my files disappeared from the list of xcode files on the left, and really random files that were not edited at all. So I decided to click again to see if I could return to its original state, and now all my files have disappeared from xcworkspace. So my screen looks like this:

I tried to recover files from my garbage (since random files appeared), but the workspace is never restored. I use MapBox, so I have 2 projects built in 1 workspace, but now the subcode will not be installed.
Can anyone give me advice on how to return this back to its original state, as I tried for several hours but cannot find any information.
version-control xcode xcode5
Elliott d'alvarez
source share