AWS iOS调用可以工作,但调试的输出很奇怪

时间:2018-01-24 16:18:02

标签: ios swift amazon-web-services debugging amazon-cognito

我正在使用AWS用户池。 我有:

func refreshDetails(_ user: AWSCognitoIdentityUser) -> AWSTask<AnyObject> {

    return user.getDetails().continueWith(block: task -> Any? in

       /*
           here, task.result is AWSCognitoIdentityUserGetDetailsResponse
           and task.result.userAttributes is correctly set
       */

        return task
    })
}

调用getDetails()并调用处理程序后,调试窗口输出会抱怨Invalid argument

2018-01-24 16:15:09.843031 gc develop[49753:1784483] [] __nwlog_err_simulate_crash_libsystem libsystem simulate crash unavailable "libsystem_network.dylib: nw_host_stats_add_src :: received error for SRC_ADDED: [22] Invalid argument"
2018-01-24 16:15:09.843799 gc develop[49753:1784483] [] nw_host_stats_add_src received error for SRC_ADDED: [22] Invalid argument, dumping backtrace:
        [i386] libnetcore-856.20.4
    0   libsystem_network.dylib             0x07269161 __nw_create_backtrace_string + 123
    1   libsystem_network.dylib             0x07280647 nw_get_host_stats + 1049
    2   libnetwork.dylib                    0x07548d55 nw_endpoint_resolver_start_next_child + 1560
    3   libdispatch.dylib                   0x070073ee _dispatch_call_block_and_release + 15
    4   libdispatch.dylib                   0x07032cc3 _dispatch_client_callout + 14
    5   libdispatch.dylib                   0x0700f449 _dispatch_queue_serial_drain + 1619
    6   libdispatch.dylib                   0x0700fc5d _dispatch_queue_invoke + 1109
    7   libdispatch.dylib                   0x07012639 _dispatch_root_queue_drain + 470
    8   libdispatch.dylib                   0x070123fb _dispatch_worker_thread3 + 143
    9   libsystem_pthread.dylib             0x073b1fdc _pthread_wqthread + 1356
    10  libsystem_pthread.dylib             0x073b1a6a start_wqthread + 34
2018-01-24 16:15:10.065788 gc develop[49753:1784482] [] __nwlog_err_simulate_crash_libsystem libsystem simulate crash unavailable "libsystem_network.dylib: nw_host_stats_add_src :: received error for SRC_ADDED: [22] Invalid argument"
2018-01-24 16:15:10.066392 gc develop[49753:1784482] [] nw_host_stats_add_src received error for SRC_ADDED: [22] Invalid argument, dumping backtrace:
        [i386] libnetcore-856.20.4
    0   libsystem_network.dylib             0x07269161 __nw_create_backtrace_string + 123
    1   libsystem_network.dylib             0x07280647 nw_get_host_stats + 1049
    2   libnetwork.dylib                    0x07548d55 nw_endpoint_resolver_start_next_child + 1560
    3   libdispatch.dylib                   0x070073ee _dispatch_call_block_and_release + 15
    4   libdispatch.dylib                   0x07032cc3 _dispatch_client_callout + 14
    5   libdispatch.dylib                   0x0700f449 _dispatch_queue_serial_drain + 1619
    6   libdispatch.dylib                   0x0700fc5d _dispatch_queue_invoke + 1109
    7   libdispatch.dylib                   0x07012639 _dispatch_root_queue_drain + 470
    8   libdispatch.dylib                   0x070123fb _dispatch_worker_thread3 + 143
    9   libsystem_pthread.dylib             0x073b1fdc _pthread_wqthread + 1356
    10  libsystem_pthread.dylib             0x073b1a6a start_wqthread + 34
2018-01-24 16:15:10.825690 gc develop[49753:1784482] [] __nwlog_err_simulate_crash_libsystem libsystem simulate crash unavailable "libsystem_network.dylib: nw_host_stats_add_src :: received error for SRC_ADDED: [22] Invalid argument"
2018-01-24 16:15:10.826126 gc develop[49753:1784482] [] nw_host_stats_add_src received error for SRC_ADDED: [22] Invalid argument, dumping backtrace:
        [i386] libnetcore-856.20.4
    0   libsystem_network.dylib             0x07269161 __nw_create_backtrace_string + 123
    1   libsystem_network.dylib             0x07280647 nw_get_host_stats + 1049
    2   libnetwork.dylib                    0x07548d55 nw_endpoint_resolver_start_next_child + 1560
    3   libdispatch.dylib                   0x070073ee _dispatch_call_block_and_release + 15
    4   libdispatch.dylib                   0x07032cc3 _dispatch_client_callout + 14
    5   libdispatch.dylib                   0x0700f449 _dispatch_queue_serial_drain + 1619
    6   libdispatch.dylib                   0x0700fc5d _dispatch_queue_invoke + 1109
    7   libdispatch.dylib                   0x07012639 _dispatch_root_queue_drain + 470
    8   libdispatch.dylib                   0x070123fb _dispatch_worker_thread3 + 143
    9   libsystem_pthread.dylib             0x073b1fdc _pthread_wqthread + 1356
    10  libsystem_pthread.dylib             0x073b1a6a start_wqthread + 34
(lldb) 

这在模拟器上发生,但在硬件上运行时不会发生。

0 个答案:

没有答案