ShareSDK code:207 报错, 还有plist设置iOS 9 坑

warning:尚未配置[QQ]URL Scheme:QQ41E9B8EA, 无法进行分享。

分享失败,错误描述:Error Domain= ErrorDomain Code=207 "(null)" UserInfo={error_message=Can't share because platform[QQ]did not set URL Scheme:QQ41E9B8EA!Please try again after set URL Scheme!}

要配置,打印的这个Scheme:QQ41E9B8EA
plist
http://wiki.mob.com/swift-调用-sharesdk/

另外 微博url失败 error 207
问题: http://bbs.mob.com/data/attachment/forum/201611/22/182533rqhb6hy8eq9acokb.png

还有简洁版没有图标问题:

            //1.创建分享参数
            let shareParames = NSMutableDictionary()
            shareParames.ssdkSetupShareParams(byText: "一种非常享受的音乐内容,非常奇特 http://www.tongrenyinsheng.com",
                                                    images : UIImage(named: "dingBlue.png"),
                                                    url : NSURL(string:"http://www.tongrenyinsheng.com") as URL!,
                                                    title : "梦境ASMR:颅内高潮",
                                                    type : SSDKContentType.image)
            ///这句话,添加样式的
            SSUIShareActionSheetStyle.setShareActionSheetStyle(ShareActionSheetStyle.simple)
//            2.进行分享
            ShareSDK.showShareActionSheet(self, items: nil, shareParams: shareParames, onShareStateChanged: { (state : SSDKResponseState, type, userdata , contentEnity, error, end) in
                
                switch state{
                    
                case SSDKResponseState.success:
                    print("分享成功")
                    HUB("成功", error: false)
                case SSDKResponseState.fail:
                    print("分享失败,错误描述:\(error)")
                    HUB("失败", error: true)
                case SSDKResponseState.cancel:
                    print("分享取消")

                default:
                    break
                }
            })

你可能感兴趣的:(ShareSDK code:207 报错, 还有plist设置iOS 9 坑)