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

前端 未结 10 1007
一生所求
一生所求 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: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.)

提交回复
热议问题