- Home /
IOS compiling process deleted all data of the project!
I had a project of a game who was just compiled for windows phone and android. I tryed next to compile the project for IOS. During the compiling process, unity gives me back an error code. After, Unity closes itself and all files in the project folder was been deleted! As if it wasn't enough, eclipse and many other folder in the desktop was been deleted. Have i lost all the data deleted?
Answer by serenefox · Mar 17, 2014 at 11:14 PM
Oh god, I did this a week ago and lost a months worth of work, even my backups were gone because I was dumb and didn't put them on a flash drive or something. But yeah when building the iOS files you have to direct it to an empty folder because when the iOS build is building, it is overwriting everything in that directory, which is probably why Unity closed because you might have been saving to the same directory as your project. I believe there should be a warning before the build to iOS telling people of this just incase since this is the only build (i think) that does this.
Luckily if you were working on Windows( like I was), there is still a chance to recover at least some of your work, like i did. I was working on Windows 7 but other Windows versions I believe have this feature, just hope yours was enabled mine was by default luckily. Lets say you saved/built it to your desktop and everything was deleted (like me), then to see if your computer backed it up by itself previously go to "My Computer" then on the explorer window you should see the desktop shortcut icon. Right click it and see "restore previous versions" then when the window pops up go to the "previous versions" tab if not already there. If you are lucky the dates upon date of folders should be there, click the one you want and "restore it" but if you have done things since then, and don't want to restore EVERYTHING, then just click and open the folder and find what you want, then copy and paste it to the desktop or other desired location.
I looked on youtube to find the video I used to help me restore but couldn't find it. I did however find a similar one on youtube that explains the process here. If you were working on a mac there might be something similar but i don't know so good luck and I definitely know how you feel right now.
Your answer
![](https://koobas.hobune.stream/wayback/20220613140507im_/https://answers.unity.com/themes/thub/images/avi.jpg)