Did I just break some kind of record?
Ok so this is actually a serious question :)
What I did was drag one of my code files onto my desktop. I then deleted the file from Xcode, thinking I had a better way to code something. Turns out I didn't,开发者_如何学Python and I want to reuse my old file.
But... I emptied the trash can in between. I didn't think this would be a problem, I just dragged the desktop version of the file back into Xcode. But now, the file is all messed up - it looks like what you get if you open a .jpeg or anything else with a text editor. I build it with this and get 67,000 errors :o
Somehow the character encoding or something has changed - anyone know how to fix this?
EDIT: ok here's another photo. No, its not photoshop.
The file you thought you dragged to the desktop is not a -- or no longer a -- source file, plain and simple.
You either dragged some other file to the desktop or your computer's filesystem is going bad and it trashed the file. Given that your system still boots, I'd assume the former before the latter.
Unless you accidentally compressed the file or something, you will need to recover the file from your backup or from revision control. If you don't have those, then you'll probably have to start over on that source.
精彩评论