-canOpenURL: failed for URL: "" - error: "(null)" , iOS9 App傳輸安全 支持http 解決方案

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

This app is not allowed to query for scheme * url

在iOS 9中必須將url加入白名單中. (LSApplicationQueriesSchemes)code

 

 在Xcode中打開Info.plist文件;添加一個鍵「NSAppTransportSecurity」,類型爲Dictionary,在該dictionary下添加一個鍵「NSAllowArbitraryLoads」,類型爲Boolean,值爲YES,而後保存文件 (App Transport Security Settings, Allow Arbitrary Loads)it

 

相關文章
相關標籤/搜索