We have enterprise proxy server which needs authentication. This setup works with our domain certs trusted and installed on Simulator prior to iOS 15.
Starting with Xcode 13 and 13.1, we see the app crashes on launch with below logs and backtrace.
Attaching crash traces as well.
Wealth_2021-12-01-143512_MAC1353916.crash
This works fine on device and only crashing on simulator
2021-12-01 14:42:39.690784-0500 ***[10849:4420774] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection
2021-12-01 14:42:39.724505-0500 ***[10849:4420774] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection
2021-12-01 14:42:39.740723-0500 ***[10849:4420774] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection
(lldb) bt
thread #31, queue = 'com.apple.network.connections', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x00007fff22803c88 libnetwork.dylib__nw_http_connect_restart_after_disconnect_block_invoke + 280 frame #1: 0x000000011453ca28 libdispatch.dylib_dispatch_call_block_and_release + 12
frame #2: 0x000000011453dc0c libdispatch.dylib_dispatch_client_callout + 8 frame #3: 0x0000000114546af9 libdispatch.dylib_dispatch_workloop_invoke + 2849
frame #4: 0x000000011455159b libdispatch.dylib_dispatch_workloop_worker_thread + 900 frame #5: 0x00007fff6bfeb45d libsystem_pthread.dylib_pthread_wqthread + 314
frame #6: 0x00007fff6bfea42f libsystem_pthread.dylib`start_wqthread + 15