[iOS]canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"

如果你的输出信息是 xxxx - error: "This app is not allowed to query for scheme xxxx"

(在这里因为我的 App 集成了分享到QQ、微信、微博的功能,xxxx部分我看到了 mqq、wechat、sinaweibosso 等多条信息)

去 Info.plist 里面建立一个叫 LSApplicationQueriesSchemes 的 Array,把你在xxxx部分看到的词汇一个一个填进去,直至控制台没有任何相关输出即可。

你可能感兴趣的:([iOS]canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx")