Can’t Install XCode 4.1 Because of iTunes? The Fix is to Kill iTunesHelper
Xcode 4.1 was made available as a free download through the Mac App Store for OS X Lion owners, but many users are encountering a strange error when they go to install the development suite; an error message pops up saying that XCode can’t be installed while iTunes is running telling you that “In order to continue installation please close iTunes” – the problem is that iTunes isn’t open when you get this error dialog.
So what’s the fix? It’s easy, open up the Terminal and type the following:
If you don’t feel like using the command line, you can also hunt for the process in Activity Monitor and kill it from there. Whichever method you choose, this kills the iTunesHelper process that is always running in the background and allows Xcode 4.1 to continue it’s installation in Mac OS X Lion.
I just ran into this problem while trying to install Xcode from the App Store with a fresh 10.7 installation, I would bet it’s just a bug with the installer that wasn’t fixed yet. Oh well, at least the fix is simple.