Malformed or corrupted AST file

前端 未结 7 2081
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 10:32

I have a problem I don\'t know why did it happen in the first place but most probably because I\'ve pressed move to trash to some system frameworks by mistake.

I got an

相关标签:
7条回答
  • 2021-01-30 11:31

    In my case, the error was happening because I had a corrupted .m file - it was one that had, somehow (not quite sure how) found its way into my project (I had Eclipse open at the same time and the corrupted file had some java code in it). To fix the problem, I cleaned my project, closed Xcode, deleted the erroneous .m file & re-opened Xcode. It then gave me a clang error due to the now missing .m file. I created a new, empty .m file with the same name and the project ran fine. Bit of a hack but it worked :-)

    0 讨论(0)
提交回复
热议问题