How to update Xcode with a new Apple ID?

XcodeApple Id

Xcode Problem Overview


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

Not the mac store informs me there is a new version for xCode but I need to insert password of the older Apple ID, and I can't just use the new one. It seems the app is associated with the old apple ID.

I can't even download a new xCode using the new apple id, because it only gives me the option to update it with the old Apple ID.

Xcode Solutions


Solution 1 - Xcode

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.

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.

Solution 2 - Xcode

Assuming you have the issue where you are getting the error

> To update this application, sign in to the account you used to > purchase it. >

on the App Store app, go to Store --> Sign Out

and then do the stuff suggested here

check this fix from Beartech at https://discussions.apple.com/thread/2794280?start=15&tstart=0

> The App Store used Spotlight in some way. My fix was to add the entire > HD to the "Privacy" tab in the Spotlight System prefs pane, close the > prefs and wait 30 seconds, re-open and remove your HD from the Privacy > tab. Spolight begins reindexing. Re-opened the App Store and problem > was fixed! Posting this here for others who might search later on. > Also filed a bug report with Apple.

hope this fixes the issue for you!

edit: I think this is a different issue compared to what I had. Your only option is probbaly to delete xcode, and download with your new Apple ID

Solution 3 - Xcode

To add an Apple ID account

  1. Choose Xcode > Preferences.

  2. At the top of the window, click Accounts.

  3. In the lower-left corner, click the Add button (+) .

  4. Choose Add Apple ID from the pop-up menu.
    enter image description here

  5. In the dialog that appears, enter your Apple ID and password, and click Sign In.
    enter image description here

To remove an Apple ID account

  1. Choose Xcode > Preferences.
  2. Click Accounts at the top of the window.
  3. Select the Apple ID account you want to delete in the left column.
  4. Click the Delete button (–) in the lower-left corner.

Follow link for source and detailed information.
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingAccounts/ManagingAccounts.html

Solution 4 - Xcode

open a folder Finder-> Go -> Applications then find Xcode in the folder. Right click on the Xcode. -> Get Info at the bottom, there is Sharing & Permissions, open it, click on the lock icon on the right corner. make Read & Write for everyone in the list.

then wait 5-10 seconds. just try update Xcode again. it will start to updating...

Solution 5 - Xcode

As NSPostWhenIdle said: "Delete Xcode, and reinstall it using the new Apple ID."

Solution 6 - Xcode

For XCode 5

  1. Xcode menu > Preferences > Accounts
  2. At the bottom left, click the +
  3. Click on Add Apple ID.

Solution 7 - Xcode

I had a somewhat similar issue. My AppleId was changed- the username - from "ab***" to "ab***@gmail.com". The new format requires an email address, and my AppleId dates back many years. I suddenly couldn't export anything from Xcode. How I fixed it:

  1. Preferences/Accounts
  2. Delete old AppleId
  3. Add new AppleId.

Apple seemed to sort itself out on the backend and the only issue was Xcode hanging around to old references to defunct and/or bad usernames (to the same keyed account. Go figure.)

Solution 8 - Xcode

If you restore your device to 13.3.0 will fix your problem, it worked for me

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionaneuryzmView Question on Stackoverflow
Solution 1 - XcodejimboView Answer on Stackoverflow
Solution 2 - XcodeNitin AlaburView Answer on Stackoverflow
Solution 3 - XcodeAamirView Answer on Stackoverflow
Solution 4 - Xcodefulberto100View Answer on Stackoverflow
Solution 5 - XcodeVictor ZamanianView Answer on Stackoverflow
Solution 6 - XcodeabsessiveView Answer on Stackoverflow
Solution 7 - XcodeAnna BillstromView Answer on Stackoverflow
Solution 8 - XcodeblueprintView Answer on Stackoverflow