Finder not working and desktop completely blank in macOS High Sierra
Ok...
For anyone searching for an similar answer reinstalling macOS (press Cmd+R on boot) [CALM DOWN BECAUSE IT WONT ERASE ANY OF YOUR FILES] did the trick.

In my case Xcode was failing too and after removing it and reinstalling all return back to normality.

Thanks.