Xcode 4.1 无法重新安装。应用商店说“已安装”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6777462/
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
Xcode 4.1 can't reinstall. App store says "installed"
提问by Ale
Today i update my system to Lion and try to update Xcode. After downloading from app store i get error.
今天我将我的系统更新为 Lion 并尝试更新 Xcode。从应用商店下载后,我收到错误消息。
So i remove my old Xcode 4.0 by this command
所以我通过这个命令删除了我的旧 Xcode 4.0
/Developer/Library/uninstall-devtools –mode=all
/Developer/Library/uninstall-devtools –mode=all
But now in app store i have the status "installed" and can't reinstall my Xcode. So what i must do?
但是现在在应用商店中,我的状态为“已安装”并且无法重新安装我的 Xcode。那我必须做什么?
p.s Trash is clear.
ps垃圾桶很干净。
回答by FractalDoctor
When I downloaded Xcode from the Mac App Store it created an Icon in launchpad called 'Install Xcode' and you're able to kick off the install from there.
当我从 Mac App Store 下载 Xcode 时,它在启动板中创建了一个名为“安装 Xcode”的图标,您可以从那里开始安装。
My installation failed the first time and I was able to reinstall fine.
我的安装第一次失败,我能够重新安装。
回答by mda
sudo /Developer/Library/uninstall-devtools –mode=all
sudo rm -rf /Developer*
sudo rm -rf /Applications/*Xcode.app
Download & Install "Install Xcode.app" or now just "Xcode.app" from the AppStore again, and run it.
再次从 AppStore 下载并安装“Install Xcode.app”或“Xcode.app”,然后运行它。
回答by seano1
Try a spotlight search for Xcode. I found an Xcode installer app in my applications folder when I did that.
尝试对 Xcode 进行聚光灯搜索。当我这样做时,我在我的应用程序文件夹中找到了一个 Xcode 安装程序应用程序。
回答by railwayparade
Delete "Applications/Install Xcode" you can then re-install from app store
删除“应用程序/安装 Xcode”,然后您可以从应用商店重新安装
回答by Arvind Kumar
open terminal window
打开终端窗口
cd /Applications
sudo rm -rf Install\ Xcode.app
After that you should be able to reinstall
之后你应该可以重新安装
回答by Jechudi
I had the same problem with other app. Deleted it and could not install again from App Store. The problem was that I had backup copy on the mounted external disk. After I have un mounted the disk with the other copy, App Store let me download the app again. Regarding to what verylastminute wrote - if Appstore can "see" any other duplication file it will not let you re-download.
我在其他应用程序中遇到了同样的问题。已删除,无法从 App Store 重新安装。问题是我在安装的外部磁盘上有备份副本。在我用另一个副本卸载磁盘后,App Store 让我再次下载该应用程序。关于verylastminute 所写的内容-如果Appstore 可以“看到”任何其他重复文件,它不会让您重新下载。
回答by ED-209
I had a similar problem - clicking on Install in the Mac App Store did absolutely nothing. No error messages, no downloads, no install.
我遇到了类似的问题 - 在 Mac App Store 中单击“安装”完全没有任何作用。没有错误消息,没有下载,没有安装。
I had to all of the following to get the Xcode install to work:
我必须执行以下所有操作才能使 Xcode 安装正常工作:
rm ~/Library/Preferences/com.apple.appstore.plist
rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState
rm -r ~/Library/Caches/com.apple.appstore
rm -r /private/var/folders/*/*/*/com.apple.appstore
Then I deleted my existing '/Developer/Xcode.app', and an existing '/Applications/Install Xcode.app' from a previous version. Even then it didn't work until I restarted my machine!
然后我从以前的版本中删除了我现有的“/Developer/Xcode.app”和一个现有的“/Applications/Install Xcode.app”。即使那样,直到我重新启动机器它才起作用!
回答by assertchris
If you have moved the Install XCodefile anywhere else, and even if you have renamed it, Spotlight still shows it being in both the new location and in Applications. You need to delete any duplicates you may have made of the file before App Store will let you download it again.
如果您已将安装 XCode文件移动到其他任何位置,即使您已重命名它,Spotlight 仍会显示它在新位置和应用程序中。在 App Store 允许您再次下载该文件之前,您需要删除该文件的任何重复项。
回答by Evan
I had a similar issue. I resolved it by creating another admin account on the computer. Then I installed Xcode using the new admin account.
我有一个类似的问题。我通过在计算机上创建另一个管理员帐户来解决它。然后我使用新的管理员帐户安装了 Xcode。
回答by whitehat101
You haven't installed Xcode, not yet.It's confusing, especially when trying to downgrade from Xcode 4.2 to Xcode 4.1 on Lion, but since the migration to App Store Xcode installs, you "install" the install app, which you then have to run to install xcode.
你还没有安装 Xcode,还没有。这令人困惑,尤其是在 Lion 上尝试从 Xcode 4.2 降级到 Xcode 4.1 时,但由于迁移到 App Store Xcode 安装,您“安装”安装应用程序,然后您必须运行该应用程序以安装 xcode。
You've installed "/Applications/Install Xcode.app"
你已经安装了“/Applications/Install Xcode.app”
You need to run this to actually get "/Developer", gcc, make, etc
您需要运行它才能真正获得“/Developer”、gcc、make 等