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

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
Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.