在引入微信、微博、QQ等第三方登录时报错:This app is not allowed to query for scheme
解决办法:
1.首先要确认Info/URL Types有没有加入schema
2.需要info.plist文件中加入LSApplicationQueriesSchemes
<key>LSApplicationQueriesSchemes</key>
<array>
<string>sinaweibohd</string>
<string>sinaweibo</string>
<string>weibosdk</string>
<string>weibosdk2.5</string>
<string>weixin</string>
<string>wechat</string>
<string>mqq</string>
<string>mqqapi</string>
<string>mqqwpa</string>
<string>mqqopensdkapiV2</string>
<string>mqqopensdkapiV3</string>
<string>wtloginmqq2</string>
<string>mqzone</string>
<string>mqqOpensdkSSoLogin</string>
</array>
网友评论