LinkPresentation framework crashing Mac app

The LinkPresentation framework, specifically using LPMetadataProvider, makes my app crash after calling -startFetchingMetadataForURL:completionHandler: and before calling the completionHandler, suggesting it's a bug within the framework, not my app.


Crashes in ***:WebKit something on macOS. On iOS, the framework performs nicely.

Answered by m.gansrigler in 639178022
I've been told by Apple (via rdar) that LinkPresentation must be used on the main thread. That's why it crashed in my case.

seems to only happen in an XPC service, not within the main app, for some reason.

This problem happens to me in an iOS share extension. I haven't tried the main app.

Accepted Answer
I've been told by Apple (via rdar) that LinkPresentation must be used on the main thread. That's why it crashed in my case.
LinkPresentation framework crashing Mac app
 
 
Q