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).
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.
Firebase Xcode output in console
You probably have a mix of 3 types of output
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!)Normal Firebase output. This should be about 8-10 lines or so.
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
Using Apple's Reachability Class in Swift
Communicating With/Opening Containing App from Share Extension
Ios6 Simulator Mkmapkit "Couldn't Find Default.Styleproto in Framework"
Obj-C Afnetworking 2.0 Post Request Does Not Work
Connecting to a Bluetooth Device from iOS, No Mfi
iOS - Uisplitviewcontroller with Storyboard - Multiple Master Views and Multiple Detail Views
Importing Swift Framework into a Objective-C Project
Property Cannot Be Found in Forward Class Object
Firebase Create User with Email, Password, Display Name and Photo Url
How to Set the Tab Order in iOS
Detecting If User Has in Call Status Bar
How to Create a Bold Uifont from a Regular Uifont
Swift How to Change Uialertcontroller's Title Color
Programmatically Creating Uilabel
How to Import Existing Objective C Classes in Swift
Add a View on Top of the Keyboard Using Inputaccessoryview
Perform UI Changes on Main Thread Using Dispatch_Async or Performselectoronmainthread