Unable to show hidden files on Mac
Try this:

defaults write com.apple.Finder AppleShowAllFiles -bool true; killall Finder


This sets AppleShowAllFiles to true which tells Finder to show all file. Note the -bool part, that tells will make sure you are setting a Boolean to it instead of string, integer etc. Finally it restarts Finder.