AsyncLocationKit
AsyncLocationKit copied to clipboard
Crash on macOS
Hi,
I get a crash on macOS on the following line in AuthorizationPerformer.swift:
if await applicationStateMonitor.hasResignedActive {
changing it to the follow helps:
if let applicationStateMonitor, await applicationStateMonitor.hasResignedActive {
It seems as de delegate is called before
applicationStateMonitor = await ApplicationStateMonitor()
is completed in the start function.
Not sure why and not sure if my workaround is the best or have other side effects, but seems to work for me.