fatal error: malformed or corrupted AST file - Xcode

后端 未结 20 1632
一向
一向 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:30

    Had same problem. Clearing derived data folder solved the issue for me. In Xcode, go to Window->Organizer->Projects, select your project, and press the "Delete..." button next to "Derived data".

    If this doesn't work, you can try to do a Product->Clean (Cmd+Shift+k).

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

    By default Library folder is hidden in Mac. Best way to navigate to that folder is :

    1. Open Finder
    2. Select Go from menu -> Select "Go to folder"
    3. Type : /Users/"your user name"/Library/Developer/xcode

    This will open direct xcode folder inside hidden library folder.

    1. Select "DerivedData" folder
    2. Command + A, select all and delete them.
    3. Open Simulator and "Reset Content and Settings".

    Now run XCode again, all will fix.

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

    I had the same issue, solved it by cleaning the project.

    Product-> Clean

    or press

    command+shift+K

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

    Got this error while trying to build a third-party app for the first time. Adding foundation as a library fixed the issue for me.

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

    tried to re-install XCode which didnt resolve the issue, also created a new local user account & get the same error so in the end I gave up & restored to a time machine backup from a few days before... seems to be ok again... for now!

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

    Simply clean remove the Derived Data and build folders. The problem shall be resolved.

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