Which version of Xcode do I need to get iOS 5.01?
Apple's iOS 5.01 is available only when you're on Mac OS 10.8 or lower. You can install it from the Preferences -> Downloads > Components. If you're using Mac OS higher than 10.9 iOS 5.0 or 5.1, then it is not available anymore.