Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Not quite sure what happened here, but my dock now looks as follows:
Try to delete the Dock Preference setting, open Terminal:
sudo rm ~/Library/Preferences/com.apple.dock.plist
Enter your password.
Reboot your computer. The dock should now be back to the original (out-of-box) settings.
had the same problem, tried all the solutions proposed using terminal and commands.
Found the solution by just dropping the icon first on the desktop and then into the dock. Stayed there and was visible