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。