I had a very similar issue recently where some apps just didn't want to show up after moving all my data to a new Mac. I tried all the suggested solutions, yet nothing has helped. Inspecting the apps in more details, I noticed that they had "eXtended ATTRibutes" (
xattr) which were named:
These attributes, among others, are set when files are copied within Finder. In case you ever wondered why apps getting copied are grayed out until the copy has finished and how the Finder can show copy progress within the Finder window itself (and not just within the copy dialog) - that's all done by different kind of attributes that are set on the file and telling the system that this file/folder/bundle is just being copied and how much of it already was copied.
Usually Finder removes all these attributes after copy, but somehow these attributes got stuck in my case and with these attributes set, Spotlight refuses to show the apps, thinking they are still in the process of getting copied.
I had to manually remove them to fix that problem:
xattr -d com.apple.finder.copy.source.inode#N PATH
xattr -d com.apple.finder.copy.source.volumeuuid#N PATH
PATH being the full path to the application (just drag it from Finder into a Terminal window and the full path is written there). Depending on access permissions/ownership, you may have to prepend the commands with
sudo to gain extended privileges.
I thought it may be helpful to share that information with the world, that's why I'm posting it here.