This app is not allowed to query for scheme...

Xcode报错:

-canOpenURL: failed for URL: "weixin://app/*************/" - error: "This app is not allowed to query for scheme weixin"

iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。

受此影响,当你的应用在iOS 9中需要使用微信SDK的相关能力(分享、收藏、支付、登录等)时,需要在“Info.plist”里配置

    NSAppTransportSecurity
    
        NSAllowsArbitraryLoads
        
    
    LSApplicationQueriesSchemes
    
        weixin
    
This app is not allowed to query for scheme..._第1张图片
未命名.png

你可能感兴趣的:(This app is not allowed to query for scheme...)