美文网首页
有关微信错误 "This app is not all

有关微信错误 "This app is not all

作者: 天空没有太阳 | 来源:发表于2016-06-22 15:43 被阅读57次

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”里配置

  • LSApplicationQueriesSchemes -> Array
  • Item 0 -> weixin


    like this

相关文章

网友评论

      本文标题:有关微信错误 "This app is not all

      本文链接:https://www.haomeiwen.com/subject/pocndttx.html