Update Xcode 9 to 10.1 can't change account for update



I've recently changed apple ID and I've downloaded xCode on mac with another apple ID.

this solution work forme
To make the AppStore forget the old credentials with which the app was downloaded, you must remove the _MASReceipt directory in the app itself.
To do this:
  1. Open Finder and navigate to Applications,
  2. Ctrl+Click XCode and choose "Show Package Contents",
  3. Expand the Contents directory and click _MASReceipt to select it,
  4. Type Command+Delete to delete the directory permanently---you will be prompted for your credentials since this is a protected file.
  5. Delete xcode, and restart your mac 
  6. Reinstall xcode 
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 user

No comments: