Spotlight has quit unexpectedly I am running a flutter application build from the command line. I also have an ios simulator running.
I keep getting an error saying &quot;spotlight has quit unexpectedly&quot;. Has anyone seen this issue before?
Process:               Spotlight [93380]
Path:                  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/Spotlight.app/Spotlight
Identifier:            Spotlight
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [93247]
Responsible:           SimulatorTrampoline [93237]
User ID:               503

Date/Time:             2020-12-07 13:17:20.865 -0600
OS Version:            Mac OS X 10.15.7 (19H2)
Report Version:        12
Anonymous UUID:        7314686F-26C9-E59B-2317-7F5D00F51293

Sleep/Wake UUID:       8C755EE1-CA06-41A4-A036-2AE52E46A9EE

Time Awake Since Boot: 1200000 seconds
Time Since Wake:       3200 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGKILL)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SPRINGBOARD, Code 0x8badf00d
The path shown in the crash log is within Xcode, specifically the iPhoneOS.platform iOS.simruntime. This Spotlight is the one running in the simulator, not the one in macOS. This is not a ‘real’ issue and can safely be ignored unless you’re testing Spotlight functionality within the app you’re running in the simulator.
This is a commonly reported issue, especially since Xcode 12. Solutions posted elsewhere that may or may not work include

Disabling Allow Spotlight Suggestions in Look Up on the simulator Settings app
Adding CoreSimulator to Spotlight privacy

To make crash reports show as a notification first to avoid interrupting your work, set the following preference:
defaults write com.apple.CrashReporter DialogType UseUNC 1