码迷,mamicode.com
首页 > 移动开发 > 详细

-canOpenURL: failed for URL: "" - error: "(null)" , iOS9 App传输安全 支持http 解决方案

时间:2015-11-16 12:34:13      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:

-canOpenURL: failed for URL: "CamCardHDOpenAPI:*" - error: "(null)"

This app is not allowed to query for scheme * 

在iOS 9中必须将url加入白名单中. (LSApplicationQueriesSchemes)

 

技术分享

 在Xcode中打开Info.plist文件;添加一个键“NSAppTransportSecurity”,类型为Dictionary,在该dictionary下添加一个键“NSAllowArbitraryLoads”,类型为Boolean,值为YES,然后保存文件 (App Transport Security Settings, Allow Arbitrary Loads)

 

技术分享

-canOpenURL: failed for URL: "" - error: "(null)" , iOS9 App传输安全 支持http 解决方案

标签:

原文地址:http://www.cnblogs.com/ethan-qi/p/4968476.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!