As you, probably, know, 4.2 is the latest suplied XCode for Snow Leopard. Mountain Lion coming in a month and there is no reason to pay extra $30 for mid-update to Lion. But 4.2 shipped with SDK 5.0... What's about 5.1?
Here is how to add 5.1 to XCode 4.2 manually...
1. Download XCode 4.3.1 or 4.3.2, it shipped with 5.1 SDK;
2. Mount XCode .dmg;
3. Open Terminal and execute following commands:
Here is how to add 5.1 to XCode 4.2 manually...
1. Download XCode 4.3.1 or 4.3.2, it shipped with 5.1 SDK;
2. Mount XCode .dmg;
3. Open Terminal and execute following commands:
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
sudo rm -f ./Latest
sudo ln -s ./5.1\ \(9B176\) ./Latest
Now start XCode and you can install in iPhone with iOS 5.1