ios工程使用SceneDelegate,发现APM会调用AppDelegate window崩溃
Ddev***@daoway.cn
发布于 10 个月前
1200来自北京应用性能监控 U-APM
apm版本:2.0.7
崩溃日志
Application threw exception NSInvalidArgumentException: -[AppDelegate window]: unrecognized selector sent to instance 0x28234e720Originated at or in a subcall of xkjgaol6 shangdan 0x00000001015c72cc 0x1003fc000 + 18657996

发现此方法[UIViewController(WPKLaunchViewController) wpkLoadView]是APM中的方法,并且看社区提问3年前就有这个bug,直到现在还没修复,也是服了。
相关问题:
https://community.umeng.com/topic/view/642a4ad5550edc0b80327215
https://community.umeng.com/topic/view/66732274ce81370e3b8e6a37
https://community.umeng.com/topic/view/6678d6e7002c920e3c1d68cc
暂时的解决方法在AppDelegate.h中添加一个window属性,不知道会不会对友盟的错误收集有没有影响。
@property (strong, nonatomic) UIWindow * window;
希望尽快解决此bug!
