Reputation: 293
I am having the problem described precisely in this thread:
dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate when trying to run iOS app
However, the solution in the thread is bizarrely not working for me.
Essentially, my problem is that my code runs fine on the iOS8 simulator, but upon running it on my phone loaded with iOS 7.1, I get an error: dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate
Referenced from: ...
Others have suggested solving this error by one of two options:
Make CFNetwork optional.
Include the Foundation framework. If you have already included it, remove it, and include it again.
1 Is not an option for me, as I require CFNetwork (using Parse, PubNub, MapBox)
2 Does not seem to work for me. No matter how I try removing and reimporting Foundation, it simple doesn't work. This is strange, as it seemed to work for other people.
Is anyone else having similar problems?
Has anyone else stumbled upon a solution other than 1 or 2? This has been a problem that has persisted for me with both X-Code 6 beta and X-Code 6 beta-2, as well as in Swift and Objective-C.
I have also tried cleaning my build folder, and deleting the project's derived data.
Upvotes: 3
Views: 1255
Reputation: 293
I figured it out. I was using cocoapods, and as such, changing the order of the libraries in the app's "Linked Frameworks and Binaries" tab so that Foundation came before CFNetwork didn't change the order the frameworks were actually imported.
In order to change the order, I had to change the order of the imported frameworks in my Pods.xcconfig file's OTHER_LDFLAGS
section so that -framework Foundation
came before -framework CFNetwork
Upvotes: 4