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
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
).
By default Library folder is hidden in Mac. Best way to navigate to that folder is :
This will open direct xcode folder inside hidden library folder.
Now run XCode again, all will fix.
I had the same issue, solved it by cleaning the project.
Product-> Clean
or press
command+shift+K
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.
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!
Simply clean remove the Derived Data and build folders. The problem shall be resolved.