CTFontManagerCreateFontRequestRunLoopSource does not receive any font requests on macOS 27, since beta 5.
This API worked fine until macOS 27 beta 4, including previous macOS releases.
It looks like this is caused by the App Sandbox. When the com.apple.security.app-sandbox entitlement is disabled the font request source does receive events.
Report including sample project: FB24764122
let source = CTFontManagerCreateFontRequestRunLoopSource(0, { (dict, pid) in /* does not receive events when sandboxed */ }
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, .defaultMode)
Is this a deliberate change or is this a bug in macOS 27? Is there an entitlement that can be set to enable the API in sandboxed apps?
My application is distributed on the Mac App Store and as standalone app. Both are properly sandboxed for added security. Disabling the App Sandbox for this specific API would be very undesirable as users will lose all Sandbox benefits.