Steps:
1. convert a dmg file into a read/write file by using a disk tool (built-in system.
2. Double-click to start running, right-click the Xcode and iOS SDK, and select "show Package content" to enter the contents folder.
3. Find the iphoneSDKSL. dist file in contents. Search for 10.7, replace it with 10.8, save the file, and reinstall xcode.
I tried this successfully, but there were only two problems at www.2cto.com.
1. During installation, the system is running iTurn. disable it. The progress is not ongoing.
Solution: Ignore it. Close the installer directly.
2. When running Xcode, the Java Runtime environment is required. This is easy to download from the apple website if you can directly connect to the network. But we cannot connect. So download and install other computers. The error persists.
Solution: reinstall Xcode3.2.6.