Faced the same issue recently and the steps below helped:
Quit the Mac App Store.
Delete directory ~/Library/Caches/storedownloadd
Relaunch Mac App Store.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: