I'm trying to compile some code that makes use of the CFNetwork framework, and it runs just fine in the simulator (with a deployment target of iOS 7.1), however when I attempt to run it on my iPhone 5 running iOS 7.1, it throws the following error:
dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate Referenced from: /var/mobile/Applications/...... Expected in: /System/Library/Frameworks/CFNetwork.framework/CFNetwork in /var/mobile/Applications/...
As for information about my app, it is written in Swift, and I am importing CFNetwork through Parse, which I import into my Swift code via an objective-C bridging header.
I am able to resolve this error, as others have suggested, by making the CFNetwork framework optional rather than required. However, the CFNetwork framework is required for my app to work (I'm using Parse as a backend, and it won't communicate without it).
As such, I am curious if anybody else has been able to resolve this issue by utilizing a method other than the above.