爲了免下載安裝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