shareSDK第三方登陆集成新浪,微信,QQ出现的错误信息总结
2016-02-19 本文已影响744人
阳光的大男孩儿
1.集成新浪微博的崩溃信息:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to instance 0x15df4860'
修改方法:
在Build settings里面打关键字:“Other Liker Flags” ,添加"-all_load".

2.没有配置新浪的URL Scheme:

3. 对于iOS9 来说即使设置了:App Transport Security Settings 中的 Allow Arbitrary Loads 为YES,也需要添加白名单,如下。

错误信息:
-canOpenURL: failed for URL: "sinaweibo://" - error: "This app is not allowed to query for scheme sinaweibo"

修改方法:

4.新浪微博在授权或者分享的过程中遇到:
sso package or sign error
如下图:

解决办法:
由于,工程的bundle ID 与你在微博官网里面创建的应用的bundle ID 不一致。因此你需要做的就是变成一致的bundle ID。