How to install Xcode on Mac 10.5.8?

I'm attempting to get into developing apps for iphones and have read that Xcode is one of the best things to have! After many failed attempts to download and install this program I have decided to ask the wonderful geeks of yahoo! Please, geeks, help a sister out! I have a Mac 10.5.8 and have just downloaded Xcode 3.1.1. However, upon trying to install this program I've encountered a problem! It won't let me actually install it because it's saying that there's no default application for it and I need to choose one. I've tried to choose any of the options it gave me but it still won't work.

Alex, to develop for iOS, you will need a minimum of Mac OS X Snow Leopard (10.6) and Xcode 3.2.6 or higher (Xcode 4).

You download Xcode as a "dmg" which you mount and open the package installer in Finder. After a successfull installation, you type this in the terminal:
gcc --version

You should see something like this:
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1

  • What is iphone apps made on xcode written in? I'm new to xcode and i was wondering what coding langue is used to make iphone apps and also if you know any good websites to learn the language on thank you in advance to any answers
  • I bought a Mac, how do I get rid of linux and install Mac OS again? I bought this mac second hand. It is an iBook G4, but the people installed linux on it and I would like the OS software on it instead as I have an iPhone and an iPod and iCloud and I would just rather deal with something that I'm familiar with, but I have been looking and I have no idea how to delete it and put what I want on it.
  • How to release app from Xcode to device without having the purchased apple id? Actually i don't have my own purchased apple id… I've made an application but i don't wanna upload it at apple store so i wanna release it but without having the purchase appleID. So is there any possible way? i already googled it but i could find something which only exists in the much older version of XCODE. Like create a new certificate or something. I'm using Xcode 4.3. And i wanna test it on my jailbroken iPhone 4.
  • How to provision an iPhone 4S for development in Xcode 6 Beta? I know how to open up the Devices window in Xcode, but not how to set my iPhone up so I can put my app on it without putting my app on the app store.