I\'m a registered developer in apple. I have installed OSX Lion and i want to install XCode but i can download only viersion 4.0.2 which is incompatible for Lion. How to do this
Download version 4.1 from App Store
You can find the DMGs for Xcode and other development tools on https://developer.apple.com/downloads/ (requires Apple ID to login).
You must login to have a valid session before downloading anything below.
Xcode 4.1: http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.1_for_lion_21263/installxcode_41_lion.dmg
See this related post: How to download Xcode DMG or XIP file?