Malformed or corrupted AST file

前端 未结 7 2271
隐瞒了意图╮
隐瞒了意图╮ 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:10

    In addition to all of the other "clean your build" answers, nothing was working for me until I emptied out the (highly undocumented!) /var/folders directory.

    Apparently, this is a "miscellaneous caches" dir maintained by OS-X. I didn't even bother figuring out what were "the correct files"; I just cleaned out the entire directory.

    ...And now I can build again. Hooray! From terminal:

    [sudo] rm -rf /var/folders/*
    

    (Although I did it from Finder, via authentication.) (OS-X 10.9.latest)

    Additional clue: I could build with XCode-6-beta, but got the goofy "corrupted AST file" error in XCode-5.

提交回复
热议问题