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

前端 未结 10 978
一生所求
一生所求 2020-11-27 16:08

My app is crashing with the message:

dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate
Referenced from: /var/mobile/Applicat

相关标签:
10条回答
  • 2020-11-27 16:24

    In my case it happened when I updated 3rd party library using CocoaPods.


    Simply Clearing Build Folder helped K

    0 讨论(0)
  • 2020-11-27 16:26

    I got some error similar: dyld: Symbol not found: _NSDictionary0 By the link: I reset my related projects' Deployment target to same value: 8.0, then it ok. May be something changed in ios9.0 and ios8.0, so if we want to make 8.0 compatible, we should make the related projects to know.

    dyld: Symbol not found: ___NSDictionary0__ when using google ServiceGenerator binary with discovery docs in XCode 7 & iOS target 9.0

    0 讨论(0)
  • 2020-11-27 16:30

    Make CFNetwork.framework optional it worked for me

    0 讨论(0)
  • 2020-11-27 16:31

    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.

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

    0 讨论(0)
  • 2020-11-27 16:36

    I ran into this exact problem at WWDC. I spoke to a couple of Apple engineers who told me this is a bug in the SDK caused by moving some symbols between CFNetwork & Foundation, and that it would be resolved in the next release, due very soon. You can work around it in some cases by playing with the order frameworks are imported, but it won't always work.

    0 讨论(0)
  • 2020-11-27 16:39

    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.)

    0 讨论(0)
提交回复
热议问题