iOS SDK 5.1 on Snow Leopard

So apparently Apple wants us to upgrade to Lion in order to develop for the latest version of iOS. But Lion still has a few issues that are preventing me from upgrading.

I quickly upgraded my phone to iOS 5.1/6.X not knowing that i wouldn't be able to use XCode with it on Snow Leopard. So the hacking started... It turns out all that is needed is a few files and an updated symlink.

You can find the DMG for the latest XCode over here:

https://developer.apple.com/downloads/index.action

after you download it, all you need to do is mount it, and run the following commands in your Terminal

after those fixes XCode should allow support for the version of the SDK you are trying to use :), this may work for future versions too!