I remember a similar question was posted about a month ago. And answer was to advise not to do so but rely on built in mechanisms.
The answer from edford to your other similar post seems to give a conclusive answer.
I would like to create my simple custom crash handler in swift to catch all my crashes or uncaught exceptions and save it locally
There is no way to do this reliably. For an explanation as to why, see my Implementing Your Own Crash Reporter post.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"