SVProgressHUD

https://github.com/SVProgressHUD/SVProgressHUD

这个一直在用,可是在Xcode 11中创建的新项目中,就直接崩。

 

无耐只能查一下原因,发现取不到window

所以也就报错。

 

原因在SceneDelegate中管理了window,在SVProgressHUD.m中就出了问题。

[AppDelegate window]: unrecognized selector sent to instance 0x600002b178e0

 

解决:

1)AppDelegate.h 中加入window。

[AppDelegate window]: unrecognized selector sent to instance 0x600002b178e0

 

2)SceneDelegate.m

[AppDelegate window]: unrecognized selector sent to instance 0x600002b178e0

AppDelegate.m

[AppDelegate window]: unrecognized selector sent to instance 0x600002b178e0

 

 

[AppDelegate window]: unrecognized selector sent to instance 0x600002b178e0

 

这样再次运次,就不会报错了。

 

这位兄弟这里也有。

https://blog.csdn.net/u010713935/article/details/104754971

 

 

 

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-21
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案