收藏
回答

WeChatSDK: wxlog:Error:set token fail, errCode:4?

iOS 15.1

SDK版本:1.8.7.1

调用微信登录接口,会报错误:WeChatSDK: wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil!,

微信分享能正常使用。

自检函数All check pass,去掉自检函数还是报这个错。

日志已上传,微信号:wxid_j5zjju9bqj4r22,时间:2021-11-16 14:58


14:56:58:782-> [WX log] : wxlog:set property list -[AppDelegate.m line:74]

14:56:58:897-> [WX log] : wxlog:launch app with ul only success -[AppDelegate.m line:74]

14:56:58:898-> [WX log] : wxlog:launch app with universal link, ret:1 -[AppDelegate.m line:74]

14:56:58:898-> [WX log] : wxlog:req:<SendAuthReq: 0x280f48150>, cid:8a872b31bc402df6f5d1bcdd8c2c3dc001ee321f -[AppDelegate.m line:74]

14:56:58:900-> applicationWillResignActive -[AppDelegate.m line:691]

14:56:59:677-> applicationDidEnterBackground -[AppDelegate.m line:695]

14:56:59:736-> applicationWillEnterForeground -[AppDelegate.m line:700]

14:56:59:760-> UniversaLink回调---continueUserActivity -[AppDelegate.m line:686]

14:56:59:761-> [WX log] : wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! -[AppDelegate.m line:74]

14:57:00:181-> applicationDidBecomeActive -[AppDelegate.m line:722]

14:57:14:496-> applicationWillResignActive -[AppDelegate.m line:691]

14:57:15:262-> applicationDidEnterBackground -[AppDelegate.m line:695]


回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容