1:升级到iOS9后,微信,QQ,微博等社交软件的分享都失效了,控制台默默地打印了这条信息:
This app is not allowed to query for scheme xxx
这是因为iOS 9系统策略更新,限制了http协议的访问,此外应用需要在“Info.plist”中将要使用的URL Schemes列为白名单,才可正常检查其他应用是否安装。受此影响,当你的应用在iOS 9中需要使用微信SDK的相关能力(分享、收藏、支付、登录等)时,需要在“Info.plist”里配置:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>mqqOpensdkSSoLogin</string>
<string>mqzone</string>
<!-- 新浪微博 URL Scheme 白名单-->
<string>sinaweibohd</string>
<string>sinaweibo</string>
<string>sinaweibosso</string>
<string>weibosdk</string>
<string>weibosdk2.5</string>
<!-- 支付宝 URL Scheme 白名单-->
<string>alipayauth</string>
<string>alipay</string>
<!-- QQ、Qzone URL Scheme 白名单-->
<string>mqq</string>
<string>mqqapi</string>
<string>mqqopensdkapiV3</string>
<string>mqqopensdkapiV2</string>
<string>mqqapiwallet</string>
<string>mqqwpa</string>
<string>mqqbrowser</string>
<string>wtloginmqq2</string>
<string>mqzoneopensdkapiv2</string>
<string>mqzoneopensdkapi19</string>
<string>mqzoneopensdkapi</string>
<string>mqzoneopensdk</string>
<string>mqqopensdkapiv4</string>
<!--<string>mqqbrowser</string>-->
<!-- 微信 URL Scheme 白名单-->
<string>weixin</string>
<string>wechat</string>
<string>weibosdk</string>
<string>weibosdk2.5</string>
</array>
2:出现 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x17024edc0'问题
需要在项目的Build Settings中的Other Linker Flags添加”-ObjC”