升级iOS12之后,发现之前的友盟统计,报错崩溃,日志如下:
'[<UIStatusBarTimeItemView 0x13fd13190> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _timeString.'
经过测试,发现在系统版本小于iOS12.0的手机上不会存在这个问题,于是乎网上博客有人说直接摒弃友盟统计或者说是放弃iOS12.0以上的手机。
除此之外,有人还建议升级友盟,个人亲测,坑点较多,如下:

因为所用到的友盟类较多,重新删除旧库,pod新库后,还有可能会看到最不想看到的”link code 1“bug,导致此bug的原因千奇百怪,已爬坑,暂未爬出。
终极解决方案:
1.登录友盟官网

找到库

替换掉你原有的common库里面的文件,重新command+B即可解决!!!
网友评论