Internal error CFNetwork: CFNetworkInternal.h: 478

My iOS device logs (on the simulator and real devices) were populated with dozens of lines of the following error spam:

Internal CFNetwork error (0xc01a: /BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.0.2/ProjectRuntime/CFNetworkInternal.h: 478)

Why do I see this and how can I get rid of them?

+6
source share
1 answer

Turns out this was due to a misconfiguration in my Info.plist NSAppTransportSecurity.

Make sure that for each of the NSExceptionDomains you use, the dictionary subfield (such as NSIncludesSubdomains, NSExceptionRequiresForwardSecrecy, and NSExceptionAllowsInsecureHTTPLoads) is of type Boolean , not String . >. Although Xcode can display your YES and NO values ​​in a very similar way, this type is important to enable CFNetwork to understand your configuration without any errors.

Wrong: Incorrect setting

Correctly : Correct setting

+18
source

All Articles