Thanks for the reply.
An application will receive nil if it fails to meet any of the above 4 requirements. But that's not true, in my case. The completion handler is not called.
I just happen randomly and I can't found the cause of this.
even when I use old function CNCopyCurrentNetworkInfo then this method is not finished (i did wait about 30 sec). This is callstack.
#0 0x00000001ba7fc2d0 in mach_msg_trap ()
#1 0x00000001ba7fb6d8 in mach_msg ()
#2 0x00000001077b4560 in _dispatch_mach_send_and_wait_for_reply ()
#3 0x00000001077b48fc in dispatch_mach_send_with_result_and_wait_for_reply ()
#4 0x00000001d82a0e68 in xpc_connection_send_message_with_reply_sync ()
#5 0x000000019e8a7984 in NEHelperCopyResponseAndCancel ()
#6 0x000000019e8a9f68 in NEHelperCopyCurrentNetworkInfo ()
#7 0x00000001c579ddf4 in __CNCopyCurrentNetworkInfo ()
#8 0x0000000104fa15c0 in @nonobjc CNCopyCurrentNetworkInfo(_:) ()
Topic:
App & System Services
SubTopic:
Core OS
Tags: