The cache path to delete Xcode is:
/users/User name/library/developer/xcode/deriveddata
(This is a hidden folder by default)
Show hidden folder directives as follows:
Show hidden files: Defaults write Com.apple.finder appleshowallfiles–bool true
Hide hidden files: Defaults write Com.apple.finder Appleshowallfiles–bool false
(after entering the command, be sure to restart the Finder)
Xcode Offline documentation
1. Xcode Document Offline installation method
1) Download the document offline file Com.apple.adc.documentation.appleios8.2.ioslibrary.docset
Note suffixes are generally:. Docset
2) Locate the Docsets directory
/applications/xcode.app/contents/developer/documentation/docsets
Copy our downloaded files here (e.g. copy the iOS7.0 offline document).
3) If not, you can check the following directory
/users/apple/library/developer/shared/documentation/docsets
Xcode Cache Help Document Hide folder display method