App crash on iOS 15 simulator (Behind Proxy)

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.

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

2021-12-03 16:53:08.206064-0500 Wealth[88863:5894561] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_http_connect_restart_after_disconnect_block_invoke protocol unknown has invalid disconnected callback" 2021-12-03 16:53:08.206399-0500 Wealth[88863:5894561] [] nw_http_connect_restart_after_disconnect_block_invoke protocol unknown has invalid disconnected callback, dumping backtrace: [x86_64] libnetcore-2736.12.1 0 libnetwork.dylib 0x00007fff22e500f8 __nw_create_backtrace_string + 120 1 libnetwork.dylib 0x00007fff228042c7 __nw_http_connect_restart_after_disconnect_block_invoke + 1879 2 libdispatch.dylib 0x000000010ebf8a28 _dispatch_call_block_and_release + 12 3 libdispatch.dylib 0x000000010ebf9c0c _dispatch_client_callout + 8 4 libdispatch.dylib 0x000000010ec02af9 _dispatch_workloop_invoke + 2849 5 libdispatch.dylib 0x000000010ec0d59b _dispatch_workloop_worker_thread + 900 6 libsystem_pthread.dylib 0x00007fff6bfeb45d _pthread_wqthread + 314 7 libsystem_pthread.dylib 0x00007fff6bfea42f start_wqthread + 15 2021-12-03 16:53:08.279493-0500 Wealth[88863:5894561] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection 2021-12-03 16:53:08.284144-0500 Wealth[88863:5894409] [boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics

Facing same issue. Any solution for to resolve this?

Hi 👋,

I'm facing the same issue does anyone know where to look for an answer ?

2022-06-23 11:55:01.621193+0200 Sambot[68523:10931475] [] nw_path_evaluator_set_queue Client error: set queue after starting
2022-06-23 11:55:01.680945+0200 Sambot[68523:10931475] [] nw_path_evaluator_set_queue Client error: set queue after starting, dumping backtrace:
        [arm64] libnetcore-2750.120.19.0.1
    0   libnetwork.dylib                    0x0000000181e05540 __nw_create_backtrace_string + 188
    1   libnetwork.dylib                    0x0000000181679b78 nw_path_evaluator_set_queue + 292
    2   libnetwork.dylib                    0x00000001816958c4 nw_path_monitor_set_queue + 92
    3   libswiftNetwork.dylib               0x00000001db99f110 $s7Network13NWPathMonitorC5start5queueySo012OS_dispatch_E0C_tF + 68
    4   Sambot                              0x00000001069f49f4 $s17PathMonitorClientAAV0abC4LiveE4live5queueABSo012OS_dispatch_F0C_tFZy7Combine12Subscription_pcfU_ + 64
    5   Combine                             0x000000019760d8d4 8B7066E5-42E4-3BB3-ACF1-FB378AABCE10 + 96468
    6   Combine                             0x000000019762b4cc 8B7066E5-42E4-3BB3-ACF1-FB378AABCE10 + 218316
    7   Combine                             0x0000000197605d14 $s7Combine18PassthroughSubjectC7receive10subscriberyqd__n_t5InputQyd__Rsz7FailureQyd__Rs_AA10SubscriberRd__lF + 488
    8   Combine                             0x0000000197613d18 8B7066E5-42E4-3BB3-ACF1-FB378AABCE10 + 122136
    9   Combine                             0x000000019761550c $s7Combine10PublishersO12HandleEventsV7receive10subscriberyqd___tAA10SubscriberRd__7FailureQyd__AIRtz5InputQyd__6OutputRtzlF + 388
    10  Combine                             0x0000000197609b38 $s7Combine10PublishersO3MapV7receive10subscriberyqd___t5InputQyd__Rs_AA10SubscriberRd__7FailureQyd__AKRtzlF + 360
    11  Combine                             0x0000000197613084 $s7Combine12PublisherBoxC7receive10subscriberyqd___tAA10SubscriberRd__7FailureQyd__AGRtz5InputQyd__6OutputRtzlF + 36
    12  Combine                             0x00000001975f861c $s7Combine12AnyPublisherV7receive10subscriberyqd___t5InputQyd__Rsz7FailureQyd__Rs_AA10SubscriberRd__lF + 36
    13  Combine                             0x00000001975fc960 $s7Combine10PublishersO9ReceiveOnV7receive10subscriberyqd___tAA10SubscriberRd__7FailureQyd__AIRtz5InputQyd__6OutputRtzlF + 524
    14  Combine                             0x00000001976060fc $s7Combine9PublisherPAAs5NeverO7FailureRtzrlE4sink12receiveValueAA14AnyCancellableCy6OutputQzc_tF + 276
    15  Sambot                              0x0000000105e43108 $s12BitbotClientAAV0aB4LiveE4liveyA2B6ServerO_7Logging6LoggerVtFZy011PathMonitorB0AJVcfU6_ + 548
    16  Sambot                              0x00000001041f6d48 $s9OldShared14AppEnvironmentV4liveACvpZfiACyXEfU_ + 1952
    17  Sambot                              0x00000001041f65a0 $s9OldShared14AppEnvironmentV4live_WZ + 20
    18  libdispatch.dylib                   0x000000010b389fc8 _dispatch_client_callout + 16
    19  libdispatch.dylib                   0x000000010b38b934 _dispatch_once_callout + 80
    20  Sambot                              0x00000001041f816c $s9OldShared14AppEnvironmentV4liveACvau + 76
    21  Sambot                              0x0000000104080440 $s6Sambot0A11AppDelegateCACycfc + 924
    22  Sambot                              0x0000000104080540 $s6Sambot0A11AppDelegateCACycfcTo + 20
    23  SwiftUI                             0x00000001880887a8 AFD39B8A-E1C2-3689-ADF0-8966D5E8CC41 + 866216
    24  SwiftUI                             0x00000001880e81f4 $s7SwiftUI28UIApplicationDelegateAdaptorV12wrappedValuexvg + 68
    25  Sambot                              0x0000000104081b84 $s6Sambot0A3AppVACycfC + 920
    26  Sambot                              0x0000000104083810 $s6Sambot0A3AppV7SwiftUI0B0AadEPxycfCTW + 12
    27  SwiftUI                             0x00000001880d61cc $s7SwiftUI3AppPAAE4mainyyFZ + 80
    28  Sambot                              0x00000001040837e4 $s6Sambot0A3AppV5$mainyyFZ + 40
    29  Sambot                              0x0000000104085108 main + 12
    30  dyld                                0x000000010b46c3d0 start + 444
App crash on iOS 15 simulator (Behind Proxy)
 
 
Q