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

前端 未结 10 985
一生所求
一生所求 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:40

    Reorder your frameworks to have Foundation before CFNetwork.

    That's a temporary fix to something that is obviously a bug in Xcode 6.

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

    The few times it happened with me a simple Clean (shift + cmd + K) did the trick.

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

    Edited to include two possible steps you need to take:

    1. Make sure you have Foundation framework to your project. (Remove and add it again to be sure).
    2. 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.

    enter image description here

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

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

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

    My code was calling sqlite3_errstr().

    The application was crashing on launch.

    Setting libsqlite3.dylib as optional (rather than required) did the job.

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