Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 giving the CFNetwork Internal error

I recently installed Xcode 6 and when I tried to run the app in simulator it runs fine ,but it logs the following error. I have no idea what this error is about. Can anyone say how to fix

CFNetwork internal error (0xc01a:/SourceCache/CFNetwork_Sim/CFNetwork-711.0.6/Foundation/NSURLRequest.mm:798)
like image 217
Teja Nandamuri Avatar asked Sep 17 '14 20:09

Teja Nandamuri


1 Answers

I don't know if this will be the solution for everyone, but it fixed my App.

I was sending a Multipart form-data POST request with:

conn = [[NSURLConnection alloc] init...]
[conn setDelegate:myDelegate];
[conn start];

And this was causing the CFNetwork internal error, so annoying.

I changed it with:

[NSURLConnection sendAsync...] 

and it now works like a charm.

like image 163
no_ripcord Avatar answered Sep 24 '22 15:09

no_ripcord