Dyld: Character not found: _NSURLAuthenticationMethodClientCertificate when trying to launch an iOS application

My application breaks with a message:

dyld: Character not found: _NSURLAuthenticationMethodClientCertificate
Link from: / VAR / mobile / Applications / C7B596AD-FB09-4685-BDFC-7E955A5DD185 / IRON TRAINERS.app/IRON TRAINERS Expected in: /System/Library/Frameworks/CFNetwork.framework/CFNetwork in / VAR / mobile / Applications C7B596AD-FB09-4685-BDFC-7E955A5DD185 / IRON TRAINERS.app/IRON TRAINERS (lldb)

when i try to create and run. When I remove CFNetwork from my project, it works, I don’t know why.

I just installed Xcode6Beta and opened my project. It worked great on Xcode5.1.

UPDATE:

It works fine on an iOS simulator with Xcode 6, the problem is in my iOS 7.1.1 device.

UPDATE 2:

The selected answer below worked for me, although I already used the basic structure added to my project, I had to remove it and add it again. The problem is solved, at least for now. :)

+44
ios objective-c frameworks xcode cfnetwork
Jun 04 '14 at 17:10
source share
9 answers

Edited to include two possible steps to be taken:

  • Make sure you have the Foundation framework for your project. (Delete and add it again to make sure).
  • Make sure the Foundation framework is included in CFNetwork.

It seems that the changes in the headers include what is in iOS8.0 (the glextensions file, for example, is no longer in the top header). If you explicitly add the Foundation framework to your project, it will work just fine. Providing CFNetwork is optional, of course, will lead to failures and is only a solution for a build error, and not for the solution as a whole.

enter image description here

+81
Jun 08 '14 at 18:33
source share

I had a similar problem with UIAlertAction

dyld: Symbol not found: _OBJC_CLASS _ $ _ UIAlertAction Link from: / var / mobile / Applications / .... app / ... Expected in: /System/Library/Frameworks/UIKit.framework/UIKit in / var / mobile / Applications / .... application / ...

Creating UIKit.frameWork Optional solved my problem. In your case, I assume that your CFNetwork.framework Optional will also solve your problem.

Make your <code> CFNetwork.framework </code> optional

+37
Jun 05 '14 at 12:59 on
source share

Reordering in Xcode did not lead to a trick; I use Cocoapods, which creates a Pods.xcconfig file. This has the line OTHER_LDFLAGS. I put the -framework Foundation as the first entry, and it made my work on the project.

 OTHER_LDFLAGS = -framework Foundation -ObjC … 

(Beware, this file will be regenerated every time you pod update .)

+16
Jun 18 '14 at 15:04
source share

Reorder your frameworks to have Foundation in front of CFNetwork.

This is a temporary fix for something that is obviously a bug in Xcode 6.

+11
Jun 05 '14 at 2:14
source share

I ran into this exact issue at WWDC. I spoke with several Apple engineers who told me that this is a bug in the SDK caused by the movement of some characters between CFNetwork and Foundation and that this will be resolved in the next release, because very soon. You can get around it in some cases, playing with an order card are imported, but this will not always work.

+6
Jun 12 '14 at 3:55
source share

I had the same problem using sqlite3 with Xcode 6.3 on a device running iOS 8.1.3 and therefore using sqlite3 v3.7.13.

The C function sqlite3_errstr () was introduced in sqlite3 v3.7.15.

My code called sqlite3_errstr ().

At startup, the application worked.

Setting up libsqlite3.dylib as an optional (rather than mandatory) job was performed.

+2
Apr 13 '15 at 12:23
source share

I got some error: dyld: Symbol not found: _NSDictionary0 By reference: I reset my related projects "The deployment target for the same value is 8.0, then this is normal. Maybe something has changed in ios9.0 and ios8. 0, therefore, if we want to make it compatible with 8.0, we must inform the appropriate projects.

dyld: Character not found: ___NSDictionary0__ when using the Google ServiceGenerator binary with discovery documents in Xcode 7 and the target program iOS 9.0

+1
Aug 02 '16 at 7:15
source share

Make CFNetwork.framework optional so that it works for me

0
Jul 08 '14 at 9:30
source share

Several times, when this happened to me, a simple "Clean" (shift + cmd + K) did the trick.

0
Jan 18 '16 at 15:34
source share



All Articles