Updating XCODE using different apple account

2019-03-17 14:04发布

I have MAC OS 10.7.3. xcode 4.3.1 installed using different apple id as my macbook pro was used previously by my friend. Now when i try to upgrade Xcode to 4.3.2 it asking credentials for my friends account. Unfortunately App store clearly says you can upgrade an app using the account which was used to install the app.

How can i upgrade Xcode using my credentials?

Thanks in advance.

3条回答
淡お忘
2楼-- · 2019-03-17 14:37

I am sure you would have solved this by now but just posting the solution here that worked for me..

  1. Open Finder and navigate to Applications,
  2. Ctrl+Click the application and choose "Show Package Contents" (Xcode in this case),
  3. Expand the Contents directory and click the _MASReceipt directory to select it, Type Command+Delete to delete the directory permanently---you will be prompted for your credentials since this is a protected file.
  4. Quit and restart AppStore, then find the application. You can update with your new id now without deleting the old version of the app

Hope this helps someone coz it took me a while to figure out !!

查看更多
等我变得足够好
3楼-- · 2019-03-17 14:37

Unfortunately had to answer my own question, Simple Answer: NO, You cannot update xcode installed from another account. Solution is to delete the existing installation and re-installing from new account. To delete the existing installation, you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.

Above solution is assuming you have installed xcode from the mac app store, usually versions later than 4.2. For earlier versions, just deleting /Application/xcode folder should work.

查看更多
手持菜刀,她持情操
4楼-- · 2019-03-17 14:57

The solution is found:

I had this bug, it's related to Spotlight. 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.

Source: https://discussions.apple.com/thread/2806858?start=0&tstart=0

查看更多
登录 后发表回答