The official explanation is as follows:
Lion10.7 install xcode4.x
Xcode3.x installed on snow leopard
If xcode3.x is installed on lion10.7, The xcode. app file cannot be found in the application after installation.
If xcode4.x is installed on lion10.7, running the previous xcode3.x may cause problems.
Solution:
1. Convert xcode3.x to a read-write DMG. Open the disk tool to convert DMG.
Application> utility> disk tool.
The "Switch" button is in the upper line.
2. Click "Storage" to generate a xxxx_final.dmg file on the desktop. Double-click to run the file.
Right-click xcode and iOS SDK and select "show Package content" To Go To The contents folder.
The interface is as follows:
3. Find the iphonesdksl. Dist file in contents. Search for 10.7, replace it with 10.8, save the file, and reinstall xcode.
4. Change the system time to 2012-01-01.
(Note that this step cannot be omitted. It may be because the system time has not been modified)
5. I am prompted to install the Java Virtual Machine During the installation process, and I will install it.
The preceding content is valid when xcode3.2.5 is installed in lino10.7.