Since fetchLastDisconnectError is available from iOS 16, the App I'm working on recently released including this API, but there are many crashes occurred from it. Based on my investigation, it looks like it crashed if it is called when the VPN configuration was not installed yet (NEVPNStatus == .invalid).
Apple document doesn't mention any requirements to call this API. So, I'm not sure how to call it correctly and safely. I created a bug report already and am waiting for their feedback.
Could anyone who has experienced and solved this advice for the issue?
Thanks.