Spotlight doesn't show my app
I recently developed my first Objective-C + SwiftUI app for MacOS.
After building the dmg file, I installed it by dragging the .app file into the /Applications directory. When I fire up spotlight and try searching for my app, it doesn't show it. I have used cmake to bootstrap the entire project.
I have tried installing this on multiple other Macbooks and the app doesn't show in those systems as well.
I tried creating a new app directly from Xcode and that app shows on spotlight search. I am very new to MacOS development and I don't know if I have missed anything. Please help me figure out what I have missed.
MacBook Pro 16″, macOS 11.0