CFNetwork internal error

bug 描述(控制台警告信息)

参考: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html

https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33

CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork/CFNetwork

修改info.plist

NSExceptionDomains

  1. NSExceptionRequiresForwardSecrecy : NO
  2. NSIncludesSubdomains:YES
  3. NSExceptionAllowInsecureHTTPLoads : YES

CFNetwork internal error_第1张图片

原因:公司使用的是http不是https请求。

这里有讲到:Networking with NSURLSession

你可能感兴趣的:(CFNetwork internal error)