I'm installing Xcode from Mac App Store but sadly fails every time near finish with
Xcode failed to download
Use the Purchases page to try again.
Except once that I copied pkg inside $TMPDIR../C/com.apple.appstore/497799835 before the App Store application auto deletes them while popping up an error dialog.
And the pkg is installable. I've successfully installed Xcode by the copied pkg before.
As I couldn't figure out why "Xcode failed to download" continues. And just got an error(again and again) after long time download is too sad. I'm wondering is there something I can do to prevent the auto-deleting?