In order to install Xcode without downloading, the installation uses the XCODE.DMG installation provided by others, instead of using your own account to download it in AppStore.
This installation mode will have a problem, update Xcode when Appstroe will prompt you to enter the download of the Xcode account and password, the account can not be directly modified. The following method can delete the old account information, and then can be updated with the new account information.
Take the following steps:
1. Open the Reference program directory
2. Find Xcode and right-click "Show Package Contents"
3. Locate the _masreceipt folder
4. Delete it and then exit restart Appstroe to update Xcode.
The AppStore forget the old credentials with which the app is downloaded, you must remove the _masreceipt directo Ry in the app itself.
To does this:
Open Finder and navigate to applications,
Ctrl+click XCode and choose "Show Package Contents",
Expand the Contents directory and click _masreceipt to select it,
Type Command+delete to Delete the directory permanently---you'll be prompted for your credentials since this is a Protec Ted file.
Quit and restart AppStore, then find XCode. The button should now say "free" or "Install" instead of "Update". Clicking it'll update your XCode to the latest version as the currently logged-in Apple user.
Original: Http://apple.stackexchange.com/questions/53648/mac-app-store-how-to-check-which-account-was-used-to-buy-app
Transferred from: http://blog.csdn.net/samuelltk/article/details/40865939
Reproduced Macstore the account is not correct when updating Xcode, replace the account method