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
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.
-derivedDataPath
xcodebuild -derivedDataPath ./build/Xcode6-beta5/DerivedData ....
This works for me.