I too have the same problem on macOS Sequoia RC.
When I do it in C, it works. I wrote that parts of my app in C because of this problem; for a reason, AXObserverAddNotification() is always failing when I call it in Swift.
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags: