Being marked as available in MacOS 10.15, while last Mojave is 10.14.6, means that crash is normal. You have to wrap the call to the API by @available(OSX 10.15)
Topic:
Code Signing
SubTopic:
Entitlements
Tags: