[Mac] How to Downgrade from Xcode 4.2 to 4.1

Tadashi Shigeoka ·  Thu, February 9, 2012

I downgraded from Xcode 4.2 to 4.1.

When I tried to install Ruby 1.9.2 using rvm and ran rvm requirements, it showed:

“Xcode 4.2.1+ users - please be warned - ”

It seemed impossible, so I downgraded from Xcode 4.2 to Xcode 4.1.

Steps to Downgrade from Xcode 4.2 to 4.1

  1. Download the Xcode 4.1 installer

Download xcode_4.1_for_lion.dmg from Resources for Apple Developer.

Resources for Apple Developers - Apple Developer

Developer registration is required for download (paid).

  1. Uninstall Xcode 4.2

Run the following command:

$ sudo /Developer/Library/uninstall-devtools --mode=all 
  1. Delete Install Xcode.app from the Applications folder

To create Install Xcode.app in the Applications folder with xcode_4.1_for_lion.dmg, delete the existing installer Install Xcode.app.

  1. Install Xcode 4.1

Mount xcode_4.1_for_lion.dmg and double-click InstallXcodeLion.pkg to install.

That’s all.


Reference Information

About Downgrading from Xcode4.2 to 4.1 - Actually hokkai7go

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

That’s all from the Gemba.