A security policy configured with `AFSSLPinningModeCertificate` can only be applied on a manager wit
来源:互联网 发布:牧场系统源码 编辑:程序博客网 时间:2024/06/07 21:59
A security policy configured with `AFSSLPinningModeCertificate` can only be applied on a manager with a secure base URL (i.e. https)
本来就是写个demo,然后去git上下载了一份最新的AFNetworking,运动就崩了,打印这个错误,一头雾水,其他项目这样写没有问题的。
其实这个错误已经告诉我们是证书安全的问题,我们在封装网络请求的时候
AFHTTPSessionManager * manager = [AFHTTPSessionManager manager];只写了这部分,现在要求这样写:
AFHTTPSessionManager * manager = [[AFHTTPSessionManager manager]initWithBaseURL:[NSURLURLWithString:url]];URL就是你们服务器的URL前缀
注明:[AFHTTPSessionManager manager]这个需要写个单例,不然就会内存泄漏哦!
阅读全文
0 0
- A security policy configured with `AFSSLPinningModeCertificate` can only be applied on a manager wit
- Who can be a manager?
- A TextureView or a subclass can only be used with hardware acceleration enabled.错误原因分析
- "SetDestination" can only be called on an active agent that has been placed on a NavMesh.
- Only a type can be imported
- svn报错can only be performed on a version resource [at this time].
- CHECKOUT can only be performed on a version resource [at this time].
- svn报错can only be performed on a version resource [at this time].
- 重装Eclipse提交时遇到CHECKOUT can only be performed on a version resource的问题
- ActionBarImpl can only be used with a compatible window decor layout
- <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
- android编译错误之“Hardware acceleration can only be used with a single UI thread”,硬件加速
- java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layou
- java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layou
- java.lang.IllegalStateException: Hardware acceleration can only be used with a single UI thread.
- android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRo
- <merge /> can be used only with a valid ViewGroup root and attachToRoot=true
- Hardware acceleration can only be used with a single UI thread
- 判断python字典中key是否存在的两种方法
- 混合高斯模型
- 前端知识总结(js部分)
- 纯C++版的Faster-Rcnn(通过caffe自定义RPN层实现)
- 控制器与视图数据传递
- A security policy configured with `AFSSLPinningModeCertificate` can only be applied on a manager wit
- G1的垃圾回收概念
- SPOJ
- (九)redis GEO地理位置
- JS总结——DOM事件
- 使用IDEA 总结
- 5、redis的两大持久化方式
- Mybatis核心技术
- STM32采集多路ADC到DMA的方法