美文网首页
com.alamofire.error.serializatio

com.alamofire.error.serializatio

作者: 大飞_2048 | 来源:发表于2019-05-05 19:21 被阅读0次

1、    

      //NSString *urlStr = @"http://47.107.97.230/api/token";

        NSString*urlStr  =@"http://rtcapi.xueersi.com/api/token";

     提示域名错误:误导        error:com.alamofire.error.serialization.response

2、根本原因:http权限验证

        (1 ) Info.plist 添加NSAppTransportSecurity类型Dictionary。

          (2).  在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES之后

相关文章

网友评论

      本文标题:com.alamofire.error.serializatio

      本文链接:https://www.haomeiwen.com/subject/ksxkoqtx.html