Cannot shut down computer due to app not responding I have a 2012-ish MBP and I am using it to develop iOS apps using Xcode. This app stops responding relatively frequently, but usually I can just force quit it and open it again. However, this time I cannot Force Quit Xcode, although there is no 'dot' beneath it in the dock, right clicking the icon just shows the 'not responding' message. I have attached a screenshot.



This is preventing me from shutting down my computer. How can I fix this?

I hope my description is clear enough to make this a good question.
You can take one of the 2 approaches one-by-one:

1) Command + Option + Escape brings up a window to force quit running apps.

2) In Terminal window, get the process_id by running ps -a and execute kill -9 &lt;process_id&gt; for the matching process.

If this doesn't work, quit all the other apps you can, make one last backup to time machine or equivalent and then kill all your user processes. 

kill -9 -1


You can try the above several times by reopening terminal and as a last resort, pressing and holding the power button will force the system to a harder shutdown by pulling all power.