Nw_Host_Stats_Add_Src Recv Too Small, Received 24, Expected 28

nw_host_stats_add_src recv too small, received 24, expected 28

This is a bug with logs in Xcode8 + iOS10.


We can get round it in this way:

When on simulator, add the Name OS_ACTIVITY_MODE and the Value
Variables disable and check it (Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment).

Sample Image

When on device, only add OS_ACTIVITY_MODE and check it(don't add the Value). You'll see the NSLog in the Xcode8 Console.

Sample Image

Firebase Xcode output in console

You probably have a mix of 3 types of output

  1. Xcode Console "garbage" -- Definitely give that solution you linked to another try. Sometimes you need to delete and re-install your app for it to take, but that will clean up nearly all the stuff that begins with nw_ (And there's a lot of it!)

  2. Normal Firebase output. This should be about 8-10 lines or so.

  3. A bunch of scary-looking FIRInstanceID warnings. While you can generally ignore these warnings, they are kind of annoying / scary, so I would recommend fixing them by adding KeyChain sharing in your capabilities as described in this post.

Download an image from a url, received error “nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed”

You must do UI stuff on the main queue:

backgroundQueue.async {
let url = URL(string: "https://url/img.jpg")
let data = try? Data(contentsOf: url!)
DispatchQueue.main.async {
//Show the image
}
}

React native - connection has no connection handler error meaning?

Try Below process

Xcode menu -> Product -> Edit Scheme...

Environment Variables -> Add -> Name: "OS_ACTIVITY_MODE", Value:"disable"

Run your app again



Related Topics



Leave a reply



Submit