CFNetwork internal error: CFNetworkInternal.h:478

偶尔善良 提交于 2019-12-23 08:50:15
问题 My iOS device logs (on simulator and real devices) was filled with a couple dozen lines of the following error spam: CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.0.2/ProjectRuntime/CFNetworkInternal.h:478) Why am I seeing these, and how do I get rid of them? 回答1: Turns out this was due to an incorrect setup in my Info.plist's NSAppTransportSecurity. Make sure that for each of the NSExceptionDomains you use, the subfields of the

App Transport Security disabled and still getting SSL Handshake Error

假装没事ソ 提交于 2019-12-13 01:13:29
问题 I'm having trouble with making a connection to an API over HTTPS/SSL. I've completely disabled App Transport Security (ATS) using the below dictionary (despite the fact that the SSL certificate passes all the tests from NSCURL). <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> </plist> BUT: There's still an SSL Handshake error (below) that, when Googled, only suggests it's to do with App Transport Security. NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)

App Transport Security policy requires the use of a secure connection

99封情书 提交于 2019-12-02 14:28:05
问题 I added the NsAppTransportSecurity as dictionary and added the key NsAllowArbitaryLoads exactly how everybody said but it does not work for me. I made a clean rebuild of the project, but I still the same error. 回答1: It should be done like this NSAppTransportSecurity <- Type Dictionary NSAllowsArbitraryLoads <- Type Boolean Value YES 回答2: It should be done like: <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>your.domain.name.net</key> <dict> <key