How to remove XCode 4.2 and install 4.1 to develop Ruby / Rails on OSX Lion?

梦想的初衷 提交于 2019-11-30 15:50:34

I'll save you any additional trouble: Your rvm installation is out of date.

Reinstall Xcode 4.2, grab the latest rvm, and get back to your work with no fuss and no hoop-jumping.

Uninstall 4.2 with

/Library/Developer/4.2/uninstall-devtools --mode=all

Then XCode 4.1 Download is here

thanks a lot it is helpful

first:

Uninstall 4.2 with

/Library/Developer/4.2/uninstall-devtools --mode=all

secondly:

download xcode4.1 installed dmg file

run dmg file to install Xcode

be sure there is no "install Xcode" file in your "/application" directory

after running dmg file , one new "install Xcode" file will be created in "application" directory.

finally: run install Xcode to finish installation

Dont you have an "Install Xcode" application on your Applications folder ? I had to run it to complete the installation after executing the package from the xcode_4.1_for_lion.dmg

To retrieve Xcode 4.1, you have to log in to the Mac Dev Center and go to Additional Downloads. You will find all the installation disk images for all the Xcode versions.

Guillaume Petit is correct - delete Install Xcode from the APplications folder first (the 4.2 version from the App Store).

Run the xcode_4.1_for_lion.dmg again and it will create a new Install Xcode in Applications (which is the 4.1 version). Run that and Developer Tools will be installed as expected.

lghoward81

Im not sure if anyone is aware, but I read in another post that you have to use clang option to install rubies. example:

rvm install 1.9.2 --with-gcc=clang

The developer tools install in the "Developer" folder on your system disk. (not in the "Applications" folder!)

The old XCode releases can indeed be found on the Mac Dev Center download site.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!