Closed AlessandroAnnini closed 7 years ago
same here. After I update Xcode to Xcode8 and solved Ignoring return value of function declared with warn_unused_result attribute it works fine but has infinite log in Xcode like
2016-09-21 14:22:14.129377 free[7145:7341205] [] tcp_connection_cancel 282
2016-09-21 14:22:14.131081 free[7145:7341205] [] nw_endpoint_handler_cancel [282 localhost:8097 failed resolver (satisfied)]
2016-09-21 14:22:14.132817 free[7145:7341205] [] nw_resolver_cancel_on_queue 0x7a972280
2016-09-21 14:22:14.133072 free[7145:7341205] [] -[NWConcrete_tcp_connection dealloc] 282
....
[] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[i386] libnetcore-856.1.8
0 libsystem_network.dylib 0x064bd2bd __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x06873682 nw_socket_add_input_handler + 3484
2 libnetwork.dylib 0x0684ed29 nw_endpoint_flow_attach_protocols + 4199
3 libnetwork.dylib 0x0684dba5 nw_endpoint_flow_setup_socket + 581
4 libnetwork.dylib 0x0684c84d -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2545
5 libnetwork.dylib 0x06869c35 nw_endpoint_handler_path_change + 2834
6 libnetwork.dylib 0x0686903c nw_endpoint_handler_start + 589
7 libnetwork.dylib 0x068826e0 nw_endpoint_resolver_start_next_child + 2634
8 libdispatch.dylib 0x0625b3ee _dispatch_call_block_and_release + 15
9 libdispatch.dylib
anyone know what happend and how to make it clean?
try to completely remove watchman and reinstall it
rm -rf /usr/local/var/run/watchman/ && brew uninstall watchman && brew install watchman
as stated here: https://github.com/facebook/react-native/issues/9943#issuecomment-247899222 for me it was the solution!
@sun2rise not work for me, the annoying infinite nw_connection_xxx
logs are still there
@sun2rise @kiliwalk not work for me too. i downgrade Xcode :cry:
I think it's xcode 8 related problem because it happens in my project which has nothing to do with the React-native. But don't know how to solve it.
@MrPluto @zh-wowtv see here It fixes my problem!
@kiliwalk Yes, but i didn't use Xcode8 caz i dont know the real reason about this. and Here is another discussion about this
This is supposedly fixed in XCode 8.1. http://stackoverflow.com/a/39887284/1404185
Issue Description
I Use Websocket, it was working with Xcode < 8 Now with Xcode 8, while trying to test my app on simulator i have this error stack in xcode: