dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate when trying to run iOS app
Edited to include two possible steps you need to take:
- Make sure you have Foundation framework to your project. (Remove and add it again to be sure).
- Make sure the Foundation framework include is before CFNetwork.
There seems to be a change in which headers include what in iOS8.0 (the glextensions file, for example, is no longer in the top header). If you explicitly add Foundation framework to your project, it will build fine. Making CFNetwork optional will, of course, lead to failures and is only a solution for the build error and not a solution overall.
I had a similar issue with UIAlertAction
dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction Referenced from: /var/mobile/Applications/ ....app/ ... Expected in: /System/Library/Frameworks/UIKit.framework/UIKit in /var/mobile/Applications/ ....app/ ...
Making UIKit.frameWork
Optional
solved my issue. In your case I am guessing, making your CFNetwork.framework
optional
will solve your problem too.
Re-ordering in XCode didn't do the trick; I'm using Cocoapods, which creates a Pods.xcconfig file. This has a OTHER_LDFLAGS line. I put -framework Foundation
as the first entry, and that's made my project work.
OTHER_LDFLAGS = -framework Foundation -ObjC …
(Beware, this file gets re-generated each time you pod update
.)