The minimum requirement for xcode 4 is 10.6.6. If you are using 10.6.3, you do not want to upgrade it. You can install the SDK by modifying the version number.
1. Open the console;
2. Use the root user;
Command: Sudo-S
Enter the password.
3. Edit the/system/library/coreservices/systemversion. plist file and back up one before editing:
CP/system/library/coreservices/systemversion. plist/system/library/coreservices/systemversion. plist. Bak
VI/system/library/coreservices/systemversion. plist
XML Code
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype plist public "-// Apple // DTD plist 1.0 // en" http://www.apple.com/DTDs/
PropertyList-1.0.dtd>
<Plist version = "1.0">
<Dict>
<Key> productbuildversion </key>
<String> 9f33 </string>
<Key> productcopyright </key>
<String> 1983-2008 Apple Inc. </string>
<Key> productname </key>
<String> Mac OS X </string>
<Key> productuservisibleversioN </key>
<String> 10.6.3 </string>
<Key> productversion </key>
<String> 10.6.3 </string>
</Dict>
</Plist>
Replace the version number 10.6.3 in the file with 10.6.7.
Remember to save after editing.
Note for beginners: after pressing ESC, enter W! Force save. Note the colon. Enter
: Q exits.
4. Start the xcode_4 installation program and install it normally.
After preliminary testing, compilation can be normal.
In the previous article on the Internet, the version number is too large.
I personally think that this method can be used in 10.6. You can test it.