我的应用程序因消息而崩溃:
My app is crashing with the message:
dyld:找不到符号:_NSURLAuthenticationMethodClientCertificate
参考自:/var/mobile/Applications/C7B596AD-FB09-4685-BDFC-7E955A5DD185/IRONTRAINERS.app/IRON TRAINERS 预计在:/System/Library/Frameworks/CFNetwork.framework/CFNetwork 中/var/mobile/Applications/C7B596AD-FB09-4685-BDFC-7E955A5DD185/IRONTRAINERS.app/IRON TRAINERS (lldb)
dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate
Referenced 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)
当我尝试构建和运行时.当我从我的项目中删除 CFNetwork 时,它可以工作,我不知道为什么.
when I try to build and Run. When I remove the CFNetwork from my project, it works, I don't know why.
我刚刚安装了 Xcode6Beta 并打开了我的项目.它在 Xcode5.1 上运行良好.
I just installed Xcode6Beta and opened my project. It was working fine on Xcode5.1.
更新:
它在带有 Xcode 6 的 iOS 模拟器上运行良好,问题出在我运行 iOS 7.1.1 的设备上.
It works fine on iOS simulator with Xcode 6, the problem is on my device running iOS 7.1.1.
更新 2:
下面选择的答案对我有用,虽然我已经在我的项目中显式添加了基础框架,但我不得不将其删除并再次添加.至少,现在问题解决了.:)
The selected answer below worked for me, although I already had foundation framework explicit added to my project, I had to remove it and add it again. Problem solved, at least, for now. :)
已编辑,包括您需要采取的两个可能步骤:
Edited to include two possible steps you need to take:
iOS8.0 中包含的标题似乎发生了变化(例如,glextensions 文件不再位于顶部标题中).如果您将 Foundation 框架显式添加到您的项目中,它将构建良好.将 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.
这篇关于dyld:找不到符号:尝试运行 iOS 应用程序时的 _NSURLAuthenticationMethodClientCertificate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!