Skip to main content

Resolve "The application cannot be opened for an unexpected reason" error when trying to use Accessibility Inspector.

Accessibility Inspector on macOS

When trying to open the Accessibility Inspector on macOS builds, you may see the following error:

The application cannot be opened for an unexpected reason, 
error=Error Domain=NSOSStatusErrorDomain Code=-10827 
"kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3762,
_LSFunction=_LSOpenStuffCallLocal}

This can often be resolved by running the command again if it fails the first time:

open /Applications/Xcode.app/Contents/Applications/Accessibility\ Inspector.app || 
open /Applications/Xcode.app/Contents/Applications/Accessibility\ Inspector.app
Did this answer your question?