Hi,
We are seeing an issue on 10.14 build which is as followed:
When we try to get list of current running applications on Mac using API:
[NSWorkspace.sharedWorkspace runningApplications], the list of the applications running is always restricted to:
<NSRunningApplication: 0x7fa839200b70 (com.apple.ViewBridgeAuxiliary - 44824)>,
<NSRunningApplication: 0x7fa839200cb0 (com.apple.ViewBridgeAuxiliary - 44964)>,
<NSRunningApplication: 0x7fa839200da0 (com.apple.CoreSimulator.CoreSimulatorService - 44976)>,
<NSRunningApplication: 0x7fa839200e90 (com.apple.WebKit.Storage - 45251)>
instead of including all of the running applications.
The service which is trying to get the list of applications is running as launchd daemon and hits this problem.
However, if we call the same API using the command line tool, it gives the complete list of applications.
This API works fine on builds prior 10.14.
Could you please let us know how can we fix this problem?
Thanks.