为了免下载安装Xcode,安装时使用了别人提供的Xcode.dmg安装,而非使用本身帐号在AppStore下载的。app
这样的安装模式会出现一个问题,更新Xcode时AppStroe会提示让你输入下载该Xcode的帐号及密码,该帐号不能直接修改。下面的方法能够删除原有帐号信息,然后能够使用新的帐号信息更新。ui
作以下步骤:this
1.打开引用程序目录rest
2.找到Xcode,右键“显示包内容”code
3.找到_MASReceipt文件夹ip
4.删除它,而后退出重启AppStroe,更新Xcode便可。rem
To make the AppStore forget the old credentials with which the app was downloaded, you must remove the _MASReceipt directory in the app itself.get
To do this:it
Open Finder and navigate to Applications,io
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 will be prompted for your credentials since this is a protected file.
Quit and restart AppStore, then find XCode. The button should now say "Free" or "Install" instead of "Update". Clicking it will update your XCode to the latest version as the currently logged-in Apple us
原文:http://apple.stackexchange.com/questions/53648/mac-app-store-how-to-check-which-account-was-used-to-buy-app