使用不同的苹果帐户更新 XCODE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10395077/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Updating XCODE using different apple account
提问by suresh
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.
我有 MAC 操作系统 10.7.3。xcode 4.3.1 使用不同的苹果 id 安装,因为我的朋友以前使用过我的 macbook pro。现在,当我尝试将 Xcode 升级到 4.3.2 时,它会询问我朋友帐户的凭据。不幸的是,App Store 明确表示您可以使用用于安装应用程序的帐户升级应用程序。
How can i upgrade Xcode using my credentials?
如何使用我的凭据升级 Xcode?
Thanks in advance.
提前致谢。
采纳答案by suresh
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.
不幸的是,我不得不回答我自己的问题,简单回答:不,您不能更新从另一个帐户安装的 xcode。解决方案是删除现有安装并从新帐户重新安装。要删除现有安装,您需要从启动板中删除它。您可以通过在启动板中找到 xcode 图标来完成此操作,长按该图标直到它开始跳舞。然后删除它并等待一段时间,直到 xcode.app 从 /Application 中删除。如果您手动从 /Application 中删除 xcode.app,App store 将继续认为它已安装并且不允许您以后重新安装。
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.
以上解决方案假设您已从 mac 应用商店安装 xcode,通常版本高于 4.2。对于早期版本,只需删除 /Application/xcode 文件夹即可。
回答by Venkat
I am sure you would have solved this by now but just posting the solution here that worked for me..
我相信你现在已经解决了这个问题,但只是在这里发布对我有用的解决方案..
- Open Finder and navigate to Applications,
- Ctrl+Click the application and choose "Show Package Contents" (Xcode in this case),
- 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.
- Quit and restart AppStore, then find the application. You can update with your new id now without deleting the old version of the app
- 打开 Finder 并导航到应用程序,
- Ctrl+单击应用程序并选择“显示包内容”(在本例中为 Xcode),
- 展开 Contents 目录并单击 _MASReceipt 目录以将其选中,键入 Command+Delete 以永久删除该目录——系统将提示您输入凭据,因为这是一个受保护的文件。
- 退出并重新启动 AppStore,然后找到该应用程序。您现在可以使用新 ID 进行更新,而无需删除旧版本的应用程序
Hope this helps someone coz it took me a while to figure out !!
希望这可以帮助某人因为我花了一段时间才弄清楚!!
回答by Mikhail
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.
我有这个错误,它与 Spotlight 相关。App Store 以某种方式使用了 Spotlight。我的解决方法是将整个 HD 添加到 Spotlight System 首选项窗格中的“隐私”选项卡,关闭首选项并等待 30 秒,重新打开并从“隐私”选项卡中删除您的 HD。Spolight 开始重新索引。重新打开 App Store,问题已解决!将其发布在这里供以后可能搜索的其他人使用。还向 Apple 提交了错误报告。
Source: https://discussions.apple.com/thread/2806858?start=0&tstart=0
来源:https: //discussions.apple.com/thread/2806858?start=0&tstart=0