I'm playing around with Dock and until now I was using killall Dock command to relaunch it.

Now I used killall -KILL Dock and my Dock went down without relaunching itself. I tried restarting my mac but it did not help.

I tried to open also /System/Library/CoreServices/Dock/Contents/MacOS/Dock but all I'm getting is:

2018-08-18 22:05:31.276 Dock[1061:44244] -[__NSCFNumber stringByExpandingTildeInPath]: unrecognized selector sent to instance 0xe5cdf6a4f4b8bcfb
2018-08-18 22:05:31.277 Dock[1061:44244] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber stringByExpandingTildeInPath]: unrecognized selector sent to instance 0xe5cdf6a4f4b8bcfb'

Is there any way I can get my Dock back :(?

  • Check to see if the Dock is hiding, press ⌥⌘D (Option-Command-D), Also, in Terminal, run pgrep Dock and if it doesn't return the PID, then run open -a Dock and let us know what happens. – user3439894 Aug 18 '18 at 20:21
  • The shortcut does not work at all. pgrep Dock returns a PID and open -a Dock does nothing too. Also doing killall Dock returns No matching processes belonging to you were found – Ancinek Aug 18 '18 at 20:22
  • I've just updated my comment above – Ancinek Aug 18 '18 at 20:23
  • Anther update. I did killall Finder then open -a Dock and now killall Dock does not return anything at all - so it seems that it should be working, but it is not :( And after doing nothing at all in terminal and trying to do killall Dock again it returns the error :/ – Ancinek Aug 18 '18 at 20:27

So, fortunately I found where the problem was - it was the desktoppicture.db file located in ~/Library/Application Support/Dock/. Probably a corrupted one. Removing it made the macOS replaced it automagically with a new one :)

| improve this answer | |
  • 1
    Please accept your answer. This will stop it from coming back to the front page every so often in the future. – Harald Hanche-Olsen Aug 19 '18 at 6:51
  • @HaraldHanche-Olsen I will do it as soon as I can - still one day before I can accept it :) – Ancinek Aug 19 '18 at 9:12
  • Good. I keep forgetting the various time limits around here. 8-) – Harald Hanche-Olsen Aug 19 '18 at 9:45
  • 1
    Had the same issue... I wasted two hours fighting that... – TheFullResolution Oct 7 '18 at 11:44

I would try ⌥⌘D first. If that doesn't work go to Apple Support Downloads, then search for, download, and run the combo 10.13.6 update (or the latest combo update available for your system version). That's may be the simplest, fastest way to fix something like this.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .