Xcode build fails with “fatal error: malformed or corrupted AST file” Crashlytics.h

后端 未结 2 1779
深忆病人
深忆病人 2021-02-12 07:20

I recently enabled modules in my Xcode project build settings (\"Enable Modules (C and Objective-C)\") and now I frequently get the below build error. It works the next time I b

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-12 07:55

    First, try going to Product -> Clean menu in Xcode. Then rebuild when it finishes.

    If that doesn't work, go to your [Name]-Prefix.pch file in the Supporting Files folder, and delete the #import line. Build. It will have errors, it's ok, now start typing it again and make sure to select the right choice from the drop-down suggest menu so it auto-fills the rest of the line for you. (This step worked for me).

    Good luck! Love it when Xcode goes weird like this :)

提交回复
热议问题