finished with error - code: -1009 when internet th

2019-04-09 23:54发布

问题:

We are using Google SDKs like SignIn,maps and Analytics. Facebook SDK for signIn. Alamofire and ObjectMapper for Networking and JSON parsing. Realm for DB.

When there is no internet connection I am getting following error on console. I have verified these are not our App Errors .

TIC TCP Conn Failed [45:0x1c8178240]: 1:50 Err(50) Task <293866EE-82E6-4740-AEAF-83A1BB11E98A>.<1> HTTP load failed (error code: -1009 )

Can anyone explain which framework is logging this error.

回答1:

-1009 is actually NSURLErrorNotConnectedToInternet from here

The log is coming from OS and you can turn it off if you set OS_ACTIVITY_MODE environment variable to disable

Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment Variables