Questions tagged [cfnetwork]

Network framework in the core services for iOS & Mac OS X

CFNetwork is a framework in the Core Services framework that provides a library of abstractions for network protocols. These abstractions make it easy to perform a variety of network tasks, such as:

  • Working with BSD sockets
  • Creating encrypted connections using SSL or TLS
  • Resolving DNS hosts
  • Working with HTTP, authenticating HTTP and HTTPS servers
  • Working with FTP servers
  • Publishing, resolving and browsing Bonjour services
230 questions
67
votes
3 answers

ios crash EXC_BAD_ACCESS KERN_INVALID_ADDRESS

MyApp works well 98% of the time, but sometimes it crashes. It's so random. The crash report shows the following. Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x3b1ae626 objc_msgSend + 5 1 Foundation …
Sj.
  • 1,574
  • 2
  • 14
  • 20
49
votes
11 answers

dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate when trying to run iOS app

My app is crashing with the message: dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate Referenced from: /var/mobile/Applications/C7B596AD-FB09-4685-BDFC-7E955A5DD185/IRON TRAINERS.app/IRON TRAINERS Expected in: …
Jorge
  • 1,482
  • 1
  • 17
  • 33
45
votes
5 answers

How to handle "CFNetwork SSLHandshake failed" in iOS

Some times i'm getting CFNetwork SSLHandshake failed -(9806) in my code,but i'm not sure why this is happening as my code runs smoothly,except when i run it in iOS 6 and then on iOS 7 64-bit i get this warning. Can anybody suggest me, how to handle…
Arun_
  • 1,636
  • 1
  • 18
  • 36
40
votes
4 answers

How to inspect websocket traffic with charlesproxy for iOS simulator/devices

I would like to inspect network traffic going through web sockets, I have no control over the networking code as this is a binary lib for which I do not have the source code, so I cannot do any log/breakpoint in the networking part of the code. I…
matanwrites
  • 782
  • 1
  • 8
  • 18
39
votes
2 answers

How can I figure out which URL is being blocked by App Transport Security?

I'm upgrading an iOS app to iOS 9, and I have some URLs that are not secure, and I need a few exceptions to App Transport Security. I've added the two that I know about, but there are some warnings happening now stating: App Transport Security has…
Micah Hainline
  • 14,008
  • 9
  • 50
  • 84
27
votes
3 answers

What is the biggest difference between NSURLConnection and NSURLSession

NSURLSession is new network SDK than NSURLConnection from Apple. 3rd old choice is CFNetwork. Question here is to figure out the biggest difference between them to understand why Apple is evolving like these. Thanks
Forrest
  • 101,971
  • 19
  • 69
  • 107
24
votes
0 answers

Crashing on iOS 11 inside of CFNetwork

I'm seeing dozens of crashes every few hours for an app, solely in iOS 11. The stack trace doesn't help and I've got no clue since the rest of the threads are doing something completely different in each of the crash logs. Thus I'm unable to figure…
strangetimes
  • 4,233
  • 1
  • 26
  • 54
22
votes
2 answers

A list of linking CFNetwork version numbers to the version of iOS

I'm wondering if anyone has a list of linking CFNetwork version numbers to the version of iOS? I've found the list for OSX CFNetwork versions but it's quite old.
Dmytro
  • 2,442
  • 5
  • 26
  • 36
20
votes
2 answers

CFNetwork and Bonjour integration for iPhone to Mac integration

I want to use CFNetwork and Bonjour in conjunction to be able to have communications between my iPhone app and a Mac app. The app on the iPhone would have one button. Then on the Mac app, there will be a label. If the button is pushed on the iPhone…
objectiveccoder001
  • 2,929
  • 10
  • 43
  • 71
12
votes
3 answers

Get notification of Wifi availability for Wifi enabled device

I have OBD2 device adapter which supports Wifi. Now I want to get notification about Wifi with OBD2 device is available so I can start talking to that device and read data and Wifi with OBD2 device is not available. When device is connected to OBD2…
NSS
  • 711
  • 1
  • 9
  • 23
11
votes
1 answer

CFNetwork SSLHandshake failed (-9806)

When I am trying to configure my Enterprise Mail account(Exchange) in Apple Mail, I can see the following error logs in Console. But I could not see this error while configure same account in Outlook 2011 Mail client. Even I can see the same error…
MacD
  • 151
  • 1
  • 5
10
votes
3 answers

How To Monitor Network Activity From Within App?

I'm trying to monitor network activity on my iPhone from within an app I'm developing. Does iOS support a netstat-like command or something similar that can tell me what what inbound and outbound connections are active ?
VinnyD
  • 3,361
  • 8
  • 32
  • 46
10
votes
1 answer

CFReadStreamRead blocking forever under iOS 7

I'm seeing an issue wherein CFReadStreamRead, as part of a streamed file upload, never returns. This seems to happen only on iOS7 — and far more often when debugging against a physical device than in the simulator — or at least, it's far more…
Paul Roub
  • 35,100
  • 27
  • 72
  • 83
9
votes
0 answers

What can use instead CFReadStreamCreateForHTTPRequest?

This method CFReadStreamCreateForHTTPRequest(...) was deprecated for IOS 9 and younger. Docs of Apple suggests to use NSURLSession instead of this. But I don't understand how I can reintegrate functionality which works with Live (I use stream) by…
Vit
  • 900
  • 1
  • 9
  • 20
9
votes
2 answers

Crash on mmapFileDeallocate

An app that I'm working on has been experiencing a very odd crash that I am unable to reproduce and the only information I have about is it from Crashlytics. It is only happening on ios7 and googling mmapFileDeallocate returns one site where someone…
TJ Gillis
  • 505
  • 1
  • 4
  • 17
1
2 3
15 16