开发者

Xcode: 67,000 build errors. How do I fix this?

Did I just break some kind of record?

Xcode: 67,000 build errors. How do I fix this?

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.

Xcode: 67,000 build errors. How do I fix this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜