Can't Login to App Store, iTunes , Xcode , iClouds on Mac 10.12.5 On my mac I can't login to App Store, iTunes , Xcode , iClouds. Tried using different Apple id but i keep getting error.


  This action could not be completed. try again


I have also tried using the same id on other machine it works but doesn't work on my mac. I am even able to login with the same id on the browser. How can i fix this?
After i try to figure out now i found the solution

Open your Terminal and put this command

sudo mkdir -p /Users/Shared
sudo chown root:wheel /Users/Shared
sudo chmod -R 1777 /Users/Shared


Fixed it