资源无法上传失败的解决办法
2015-11-27 13:42
260 查看
今天更新了Xcode 7 正式版,App编译出现很多警告,在App运行的时候出现如下的提示.........
the resource could not be loaded because the app transport security policy requires the use of a secure connection
资源不能被加载,因为该应用程序传输的安全策略要求使用安全连接
iOS9引入了新特性
Transport Security (ATS)
新特性要求App内访问的网络必须使用
但是现在公司的项目使用的是
暂时解决办法:
在Info.plist中添加
在
或者直接在 TARGETS->info->Custom iOS Target Properties上添加NSAppTransportSecurity和NSAllowsArbitraryLoads
原帖:http://www.bubuko.com/infodetail-1099595.html
the resource could not be loaded because the app transport security policy requires the use of a secure connection
资源不能被加载,因为该应用程序传输的安全策略要求使用安全连接
iOS9引入了新特性
App Transport Security (ATS)。详情:App
Transport Security (ATS)
新特性要求App内访问的网络必须使用
HTTPS协议。意思是Api接口以后必须是HTTPS
但是现在公司的项目使用的是
HTTP协议,使用私有加密方式保证数据安全。现在也不能马上改成
HTTPS协议传输。
暂时解决办法:
在Info.plist中添加
NSAppTransportSecurity类型
Dictionary。
在
NSAppTransportSecurity下添加
NSAllowsArbitraryLoads类型
Boolean,值设为
YES
或者直接在 TARGETS->info->Custom iOS Target Properties上添加NSAppTransportSecurity和NSAllowsArbitraryLoads
原帖:http://www.bubuko.com/infodetail-1099595.html
相关文章推荐
- 路由器mac地址克隆
- AndroidStudio导入项目一直卡在Building gradle project info最快速解决方案
- 【原】objc_setAssociatedObject和objc_getAssociatedObject
- excel公式:获取两列数据中相同的数据,并展示在第三列。
- Android Studio修改常用快捷键
- 满天星
- canvas路径操作
- 1031. Hello World for U (20)
- 1027. Colors in Mars (20)
- 一个apk多个入口,在桌面上创建多个应用图标的桌面快捷方式
- 中华人民共和国公司法
- webservice开发,eclipse版
- 客户端(C#)调用CXF搭建的webservice的出现一些问题记录
- 匆匆
- 【统计-Distributions】
- C语言开发总结(八)
- UIView生命周期详解
- JobDeer 的《程序员必读的职业规划书》
- 中国央行与欧洲央行完成双边本币互换测试
- 索引优化