defer {
// 7. Cleanup the mach port
mach_port_destroy(mach_task_self_, context.currentExceptionPort)
}
The warning for Xcode -
"'mach_port_destroy' was deprecated in iOS 15.0: Inherently unsafe API: instead manage rights with mach_port_destruct(), mach_port_deallocate() or mach_port_mod_refs()"
Just a deprecation working.
Seeing it in CwlCatchBadInstruction, line 174 -
The warning for Xcode - "'mach_port_destroy' was deprecated in iOS 15.0: Inherently unsafe API: instead manage rights with mach_port_destruct(), mach_port_deallocate() or mach_port_mod_refs()"