I have installed Yosemite from distro to VirtualBox. Everything is running GREAT. except.... I can't install XCode from the app store. It downloads 100% of the file, status goes to "waiting to install" briefly but then pops up a message window stating "XCode failed to download" "Use the Purchases page to try again". Any Ideas? I've tried to rm the folders with: rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/com.apple.appstore" and re-downloading... to no avail!