I bought a new mac (Lion), downloaded xcode, installed it, then found out it was version 3.2.x. I found out I could get the latest versions of all software from itunes. So, I started downloading (and installing) xcode 4.2.1 from itunes. Before it could finish, I uninstalled the older version using this command : sudo /Developer/Library/uninstall-devtools –mode=all
It worked except after xcode 4.2.1 didn't install properly. When I try to install macports, I get this message: xcode is not installed. When I go to itunes again, it displays "xcode installed", I cannot install it again! What should I do now?
sudo /Developer/Library/uninstall-devtools –mode=all
one more time and then try to reinstall it? – Simon