简体   繁体   English

如何卸载Xcode(没有/ Developer文件夹或“安装Xcode”应用)

[英]how to uninstall Xcode (do not have /Developer folder or “Install Xcode” app)

this is a strange question. 这是一个奇怪的问题。 I search for a while but no luck. 我搜索了一段时间,但没有运气。 I have installed Xcode on lion previously; 我以前已经在狮子上安装了Xcode。 however I delete the "Install Xcode" after the installation. 但是我在安装后删除了“安装Xcode”。 Now when I use commands like "g++" and "make", which should be supported by Xcode, terminal says "command not found". 现在,当我使用Xcode应该支持的“ g ++”和“ make”之类的命令时,终端会显示“找不到命令”。 Also, there is no Developer folder at my home path; 另外,我的主路径中没有Developer文件夹。 all I have is a Xcode app in my Application folder. 我所拥有的只是我的“应用程序”文件夹中的一个Xcode应用程序。 But I could open it and also compile c program in it. 但是我可以打开它,也可以在其中编译c程序。

I am confusing about this situation now, so I decide to uninstall and reinstall Xcode. 我现在对这种情况感到困惑,因此我决定卸载并重新安装Xcode。 However I cannot directly drag the Xcode app to trash. 但是,我不能直接将Xcode应用程序拖到垃圾箱。 Is there a way to get this back to the right track? 有没有办法让它回到正确的轨道? I need to use those command line tools. 我需要使用那些命令行工具。

Thank you. 谢谢。

XCode 4.3 does not use a /Developer folder and does not install the command line tools by default. XCode 4.3不会使用/ Developer文件夹,并且默认情况下不会安装命令行工具。 Go to preferences in Xcode, downloads, and install the command line tools. 转到Xcode中的首选项,下载并安装命令行工具。 Or, you can download Xcode 4.2.x directly from Apple. 或者,您可以直接从Apple下载Xcode4.2.x。

Command-line build tools are now a separate install within XCode.app. 现在,命令行构建工具是XCode.app中的单独安装。 Look under the "Downloads" tab of the preferences panel, under "Components". 在“组件”下的“首选项”面板的“下载”选项卡下查看。

It may cause due to some files has been moved to trash by mistake. 这可能是由于某些文件被错误地移至回收站而引起的。

Download new XCODE from http://connect.apple.com for Lion 10.7.3 and upgrade your mac OS to the latest version.Then reinstall it again after deleting the previous XCODE. http://connect.apple.com下载适用于Lion 10.7.3的新XCODE并将Mac OS升级到最新版本。然后,在删除以前的XCODE后重新安装它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM