allexbrazuca said: Hi, Mate! I followed yours steps to install Xcode 3 on Lion but in my case, the additional problem is that into the Xcode Package Name: Mac OS X 10.4 SDK the Action: is set as Skip, and Size: is set as Zero KB. There is anything that can I do to download full package?

Did you check the checkbox next to it? I just tried it myself and I was able to check the box and then it changes from Skip to Install. I did notice that it takes a while for it to register your click.

Installing Xcode 3.2.6 On Lion Redux

In my last post I gave a set of simple steps that allowed one to install Xcode 3.2.6 on Lion. In looking through the isDevToolsCompatible function again, I noticed that it would return true if the COMMAND_LINE_INSTALL environment variable was set no matter what version Mac OS X you are running.

It’s now possible to greatly simplify the installation process:

  • Mount the Xcode 3.2.6 DMG
  • Open Terminal
  • Enter the commands:
    open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"

The open command will launch the installer app and allow you to install Xcode 3.2.6 on Lion with no package modifications.

The same caveats as my last post apply. Use at your own risk.

Installing Xcode 3.2.6 On Lion

Update: Since writing this, I’ve discovered an easier way to install Xcode 3.2.6 on Lion.

Today on Twitter I noticed a conversation between @ccgus, @rbrockerhoff and @radiofreelunch concerning running Xcode 3.2.6 on Lion. The consensus was that if you had it installed before upgrading to Lion that it seemed to work alright but it wasn’t possible to install it while running Lion. If you try, you will see that the Xcode Toolset component is disabled and can’t be selected. Back when the first Developer Preview of Lion was released I was working on a product built using Xcode 3.2 that needed to run on Lion and had issues on that Developer Preview. At the time, it wasn’t desired to migrate all of the projects to Xcode 4 but we wanted to fix the Lion issues, so I decided to see if I could get Xcode 3.2 to install. It turns out that you can, it’s relatively easy to do.

  • Convert the Xcode 3.2.6 disk image to a read-write disk image with Disk Utility
  • Mount the new read-write image
  • In Finder, right-click on the Xcode and iOS SDK package and Show Package Contents
  • Inside the package, locate Contents/iPhoneSDKSL.dist and open it in your favorite text editor
  • Search for isDevToolsCompatible
  • Change 10.7 in that function to 10.8
  • Save the file
  • Run the installer package
  • The installer should now allow the dev tools to be installed

There are a few of caveats that I need to add to this post.

First, it should be very clear to anyone reading this that Apple does not support Xcode 3.2.6 on Lion. If there are problems, they won’t be fixed. You are on your own.

Second, back when I first figured this out it was with the Xcode 3.2.5 installer. I’ve double-checked with Xcode 3.2.6 and it appears to work the same so these instructions should be fine but I’m not guaranteeing any miracles here. I’ve done no testing of the actual install of Xcode 3.2.6 on Lion. Just that the installer can be modified to allow the dev tools to install.

Finally, I don’t know what will happen if you try to run this and you already have Xcode 4.1 installed. I’ve only tried it with no other dev tools installed.

I’m interested in hearing if anyone has success or failure with these modifications.

Wireless bridging and the Linksys WRT54G2

Why on earth would Linksys ship a wireless router that did not support running in wireless bridge mode? That is the question that I was asking myself today. My main wireless router is an Airport Extreme. I had an old b/g Linksys WRT54G2 v1.0 hanging around so I decided that I would take the time to create a dual-band wireless network, which is described nicely here.

Unfortunately, it turns out that the WRT54G2 firmware doesn’t support a bridge configuration. I’m baffled as to why this is the case. I’ve had older versions of the WRT series that most certainly did support this.

Apparently, there is a 3rd-party initiative to create firmware for these devices with more features. I scanned through the instructions and it was more work than I cared to do at the moment. I was also worried by the fact that you cannot easily return to the Linksys firmware and by the number of people complaining about things not working correctly.

Maybe when I feel more adventurous I’ll give it a try again. Or I’ll just buy a new Airport Extreme with dual-band built-in.