I haven't noticed exactly when it happened but previously I was always using spotlight to run Xcode. Now if i'm typing "Xcode" in it, only folders containing this name show up, or some xcode projects, not all though. I've tried search in finder and even choosing kind of files - Application, still no luck. Did Anybody face this problem before?

  • 1
    does it happen only with xcode? – Anonymous Nov 27 '12 at 11:45
  • it looks like only to xcode. other apps that i run through the spotlight (like Chrome, Pages, Terminal, TextWrangler, etc.) are working fine as it was before. – peetonn Nov 27 '12 at 15:17
  • 1
    i think that has happened after some xcode update or so... – peetonn Nov 27 '12 at 15:17

Try Rebuilding Spotlight index. You can do it from the Terminal:

$ sudo mdutil -i on /
  • Awesome, I'm glad it helped you, cheers! :-) – Anonymous Nov 28 '12 at 7:11
  • 2
    Just to let people know that this answer still works as of 2017. – Lucio Paiva Oct 31 '17 at 11:44

I had a similar problem after upgrading to Xcode 8.3. It simply stopped showing up in the spotlight search result. Rebuilding by adding Application folder to the privacy list in spotlight preferences, didn't help.

Executing sudo touch /Applications/Xcode.app in the Terminal worked.

Cheers, Jon

  • For me only a combination of both steps worked, only touching Xcode didn't work, but after putting in into the privacy list and then running the command fixed the problem – Simon Meusel Jul 16 '17 at 10:06

After upgrading from El Capitan to macOS Sierra I had the same problem.

The only command that did the trick was:

sudo mdutil -E # from mdutil usage "Erase and rebuild index"

If that one doesn't work directly, try running this command first:

sudo mdutil -i on # from mdutil usage "Turn indexing on or off"

Updating the permissions did the trick for me: chown -R $(whoami):staff /Applications/Xcode.app

Suggested from here: https://forums.developer.apple.com/thread/82503

  • Welcome to Ask Different! We're trying to find the best answers and those answers will provide info as to why they're the best. Explain why you think the link you provided will answer the question. Answers should be self-contained so others can find them by using the search feature. Links can change and become outdated so we prefer the answers to not just be a link. See How to Answer on how to provide a quality answer. - From Review – fsb Sep 30 '18 at 13:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .