Tech

Crash on iOS 13 iPhone when putting multiple AFNetworking tasks

I have a consistent crash on iOS 13 iPhone if I put multiple tasks on AFNetworking at the same time. Here’s the report:

Exception Type: EXC_BREAKPOINT (SIGTRAP)

Exception Codes: 0x0000000000000001, 0x00000001b9f0dadc

Triggered by Thread: 0

Application Specific Information:

Corrupt NSInvocation detected.

Now, Stacktrace debugging report:

Thread 1 Queue : com.apple.main-thread (serial)

#0 0x00000001957e8460 in OUTLINED_FUNCTION_0 ()

#1 0x0000000195841238 in -[NSInvocation dealloc].cold.1 ()

Enqueued from com.alamofire.networking.session.manager.processing (Thread 15) Queue : com.alamofire.networking.session.manager.processing (serial)

#0 0x000000010f2febf0 in _dispatch_introspection_queue_item_enqueue_hook ()

#1 0x000000010f2ccac8 in dispatch_group_async ()

#2 0x00000001050cb3c0 in __72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke.147 ()

What might be wrong here?

hey there!
check the following link, it shows why and how to fix it