- xcode升级到11后微信登录返回后app卡死
升级xcode后,旧工程连接真机调试,当手机版本为ios12的时候,微信登录正常,Universal Links正常,回调走的是continueUserActivity 当手机ios版本为13以上时,微信登录返回依然走了continueUserActivity,但是多了一条错误日志 Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. 然后app直接卡死。 以下为全部日志: 2020-03-24 16:32:12.462798+0800 ydqp-mobile[1297:1029286] 微信错误l日志 wxlog:send req[<SendAuthReq: 0x2822bf990>], appID:wx30ce23eac8519a3e, universalLink:https://sjbd.wx.huidutek.com/ydqp/, sdkVersion:1.8.6.1 2020-03-24 16:32:12.517270+0800 ydqp-mobile[1297:1029286] 微信错误l日志 wxlog:set property list 2020-03-24 16:32:12.559619+0800 ydqp-mobile[1297:1029286] 微信错误l日志 wxlog:launch app with ul only success 2020-03-24 16:32:12.559791+0800 ydqp-mobile[1297:1029286] 微信错误l日志 wxlog:launch app with universal link, ret:1 2020-03-24 16:32:12.559957+0800 ydqp-mobile[1297:1029286] 微信错误l日志 wxlog:req:<SendAuthReq: 0x2822bf990>, cid:877b4f87db5e1f24c97d262b1a9766f89937b843 D/AudioEngine-inl.mm (172): UIApplicationWillResignActiveNotification 2020-03-24 16:32:12.736977+0800 ydqp-mobile[1297:1029503] PBItemCollectionServicer connection disconnected. JS: AudioMgr--------->gameHideEvent---->openwechat = true 2020-03-24 16:32:13.439648+0800 ydqp-mobile[1297:1029286] Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. 2020-03-24 16:32:21.918250+0800 ydqp-mobile[1297:1029286] 微信错误l日志 wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! 2020-03-24 16:32:21.918583+0800 ydqp-mobile[1297:1029286] wx onResp data code:0 str:(null) JS: onLoginResp succeed---------->001evlyM0X7dx829ThyM0lCiyM0evlyo D/AudioEngine-inl.mm (182): UIApplicationDidBecomeActiveNotification ios12一下的手机测试都没问题,唯独ios13不行,Universal Links配置正确,浏览器里都能拉起app。
2020-03-24 - iOS 经后台数据统计,你的移动应用已更新新版本SDK,但错误调用情况较多,请根据以下指引完成自查?
经后台数据统计,你的移动应用已更新新版本SDK,但错误调用情况较多,请根据以下指引完成自查,避免影响移动应用正常使用微信登录、分享等功能。详见:https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409 有人在开发平台收到这个通知吗?目前使用iOS OpenSDK1.8.7,调用微信相关功能,可以正常使用,但是在调用微信支付和登录时会有异常日志wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil!Universal Link校验正常,在浏览器可以拉起APP,iOS13下也是正常调用 - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler 自检方法WXApi checkUniversalLinkReady 也提示 WeChatSDKWeChatSDK0, 1, check passed, WeChatSDKWeChatSDK1, 1, check passed, WeChatSDKWeChatSDK2, 1, check passed, WeChatSDK: wxlog:set property list WeChatSDKWeChatSDK3, 1, check passed, WeChatSDK: wxlog:launch app with ul only success WeChatSDKWeChatSDK4, 1, check passed, WeChatSDK: wxlog:Successfully starting WeChat with the universal link. WeChatSDKWeChatSDK5, 1, Universal Link check passed. The application is launched by WeChat via Universal Link, WeChatSDK: wxlog:WXCheckULStepResult[success: 1, errorInfo: Universal Link check passed. The application is launched by WeChat via Universal Link, suggestion: ] WeChatSDKWeChatSDK6, 1, All Check Passed!, WeChatSDK: wxlog:WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ] 但是有这个异常日志,和通知,实在搞不清楚原因了?请告知
2020-04-07