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

时间:2023-03-09 00:35:15
-canOpenURL: failed for URL: "" - error: "(null)" , iOS9 App传输安全 支持http 解决方案

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

This app is not allowed to query for scheme * 

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

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

在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 解决方案