Installing Xcode from App Store doesn't seem to work I'm having a rather odd problem.

I've installed Xcode from the App Store three times now. No errors are being presented to me, but after installing Xcode I can press Open (in the App Store) and nothing happens. Refresh the view in App Store and I can press Install again.

What's going on?

I'm on Sierra 10.12.4 if that matters.
Given Xcode.app appears in the /Applications and can be launched, the behaviour suggests Spotlight has yet to notice the newly installed application.

It is likely Apple's App Store application uses Spotlight to determine if applications are installed; thus the ability to Install Xcode.app re-appears on refresh.

I suspect the bug will vanish once Spotlight re-indexes your applications.

Consider telling Apple directly about this bug through their feedback form.