fatal error: malformed or corrupted AST file - Xcode

后端 未结 20 1633
一向
一向 2020-12-02 14:57

I get this error when building my app in the latest version of Xcode:

fatal error: malformed or corrupted AST file: \'Unable to load module \"/Users

相关标签:
20条回答
  • 2020-12-02 15:45

    I tried deleting derived data and Clean project several times and it doesn't work. The file in my warning is an old file I already deleted from Project Navigator and all the Build Settings. But it keeps showing up and gives me this error. The error only occurs on Simulator, but not on device. Which is really really weird. :/

    For some reason, I switched branch to some other branch and switch back and it works again. If anyone even know how that could work please tell me :D

    0 讨论(0)
  • 2020-12-02 15:47

    I got same error on executing xcodebuild command of Xcode6-beta5.app coexisting with Xcode.app (Xcode 5).

    In this case I added -derivedDataPath to separate ModuleCache from the one for default Xcode.app.

      xcodebuild -derivedDataPath ./build/Xcode6-beta5/DerivedData ....
    

    This works for me.

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