“In order to continue the installation, please close the following application: iTunes” 27

Mac OS X 10.7 Lion is finally out and so far, it seems pretty cool. There are a lot of nice new features that make a great OS even greater and it is will worth the £21 price tag!

I’ve always liked tinkering around with some basic development and creating some small apps for myself that help me do what I want to do. Usually no use to anyone else, but they help me :) The one thing that put me off trying to develop anything for Mac OS X though was that by the time I came to actually be interested in tinkering with Mac development, Apple had started charging for their Xcode aplication. It was only a small price, but considering how often I’d use it, I wasn’t prepared to purchase it unless I was serious about development. I did notice though, that since upgrading to Lion, Xcode is now free in the Apple App Store, so I jumped on the opportunity before they start charging for it again.

When you download Xcode from the App Store, it downloads an installer to run when you like, rather than installing itself straight away, and it uses the operating system’s Installer program. I did however, come across an interesting problem trying to install it, and it appears I’m not alone in this one…

Before upgrading to Lion, I did a clean install of Snow Leopard to make sure taht nothing would break, so this is a completely fresh system. I’ve never used iTunes since I did the clean install, however while doing the installer, I came across an error that said the following:

In order to continue the installation, please close the following applications:

iTunes

I checked the dock bar, and iTunes wasn’t running at all. I also have an app called QuitsAppsMBI which is a handy tool for quitting applications, nothing on there to say iTunes was running. Lastly, I checked Force Quit to see if there was anything, and there was nothing in there at all.

Not wanting to potentially ruin the installation, I wasn’t sure I wanted to just kill the Installer, so I seeked the help of Google to see if there were any suggestions on what to do. I came across the following post on James Greenhalgh’s blog: http://james.greenhalgh.eu/2011/in-order-to-continue-the-installation-please-close-the-following-application-itunes

This post detals exactly the problem I was having, and a really simple fix! Open up Terminal (found in ApplicationsUtilities) and type in the following command:

ps x | grep iTunes

This will list all the processes running on your computer with iTunes in the path. This returned the following for me:

174   ??  S     0:00.04 /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app/Contents/MacOS/iTunesHelper -psn_0_57358
2613 s001  S+     0:00.00 grep iTunes

So this shows that the iTunes Helper is still running in the background. To kill this off, you then enter the following command:

kill 174

The first number from the first command is a process ID, so you’re telling it to kill the process with ID 174. Change the 174 to whatever the ID shows as from the first command, and it’ll end the iTunes Helper. After a few seconds, the Xcode installer will clock onto this and continue the installation!

Thanks again to James Greenhalgh for that tip! (Y)

27 thoughts on ““In order to continue the installation, please close the following application: iTunes”

  1. Reply James Greenhalgh Jul 23, 2011 9:39 pm

    Glad to see that the post was helpful to you. I didn’t really explain the solution very well so its nice to see that you went into more detail.

  2. Reply Andrew Jul 28, 2011 11:57 pm

    Thanks, worked like a charm!

  3. Reply Heber Jul 29, 2011 3:03 am

    Thanks! Just what I needed as well

  4. Reply Aron Jul 29, 2011 9:06 am

    Thanks a bunch, I was getting stuck on this also

  5. Reply Saad M. Waraich Jul 30, 2011 6:28 pm

    You are both good men for sharing this. I tried ps to look for the process a couple of times but forgot to capitalize the ‘t’ of iTunes.

    Thanks.
    Br
    SMW

  6. Reply Marcus Aug 1, 2011 10:53 am

    I couldn’t kill the process with the process ID because it kept changing. Instead I opened Activity Monitor, filtered for iTunes and quit the process that way.

    For anyone with the same problem.

  7. Reply ajax Aug 2, 2011 1:30 pm

    Thanks a lot!

  8. Reply Matthew Ellis Aug 2, 2011 8:25 pm

    @Marcus – your method worked for me! Great idea, thank you. The Terminal method didn’t work.

  9. Reply ro Aug 5, 2011 2:10 am

    i have the same problem. thanks for sharing the solutions.

  10. Reply Eoin Aug 7, 2011 7:53 pm

    Thanks – it worked!

  11. Reply deepblue Aug 22, 2011 8:08 pm

    Dude! Saved my life;), thanks!

  12. Reply anhkiet_1992 Aug 31, 2011 3:48 pm

    Thank you!It worked..

  13. Reply anhkiet_1992 Aug 31, 2011 3:52 pm

    no xcode for lion is the main reason that make my eclipse cannot be worked!great,How ever i cannot use itunes 10.5 beta

  14. Reply anhkiet_1992 Aug 31, 2011 3:53 pm

    can everyone help me?my email address anhkiet_1992@yahoo.com

  15. Reply Kenny Sep 5, 2011 12:41 pm

    Guys thank you all so much for the info, Ive been stuck on this for 3 days solid, much appreciated and thanks for the share.

  16. Reply SoDoo Oct 4, 2011 6:49 pm

    Yeah, it worked like a charm.

  17. Reply Li Oct 12, 2011 7:36 am

    Thank you very much. It helped me calm down at all. :D

  18. Reply Peter (in Canberra, Australia) Oct 17, 2011 9:48 pm

    The Terminal solution did the trick for me. Many thanks to James and Mike for highlighting the solution.

  19. Reply Chris Oct 18, 2011 2:57 pm

    Thank you good sir. Terminal knowledge +1

  20. Reply David Walshe Nov 22, 2011 3:17 am

    Mate… greetings from Down Under. I am the klutz of klutzes when it comes to computers and still getting used to my new Mac.

    I had this “Quit itunes” message, saw your solution, gritted my teeth, prepared for yet another techy failure, and…

    It worked. You are a genius!
    Tks heaps.

  21. Reply Canvas Nov 25, 2011 11:47 am

    Thank you! +100000

  22. Reply Sean Dec 17, 2011 12:57 pm

    Thanks, worked perfectly!

  23. Reply killuaj Feb 8, 2012 4:28 pm

    thank you :) and thank for another one :P

  24. Reply lalua Dec 26, 2012 4:51 pm

    “I couldn’t kill the process with the process ID because it kept changing. Instead I opened Activity Monitor, filtered for iTunes and quit the process that way.” for such help extended in the spirit of brotherhood, may you advance yourself according to good karma. thank you much merry xmas!

Leave a Reply