i-chou's tech blog

Android iOS

Ios Sdk 8 Symbol _NSURLAuthenticationMethodServerTrust Not Found

| Comments

今天把做到收尾部分的新项目放到Xcode6上用iOS8SDK运行,出现ios sdk 8 Symbol _NSURLAuthenticationMethodServerTrust not found错误。

解决方法分享一下:

由于用到的AFNetworking是用官方推进安装方式CocoaPods方式安装的。那么遇到这个问题就可以在pods项目下的Targets Support FilesPods下面找到Pods.xcconfig文件,在里面找到OTHER_CFLAGS关键字里面的-framework Foundation,把-framework Foundation剪切到-framework CFNetwork的前面,保存,Clean and re-build/run

OK, 希望对你有用。

这个办法来自https://github.com/AFNetworking/AFNetworking/issues/2109

Comments