QMUI_iOS icon indicating copy to clipboard operation
QMUI_iOS copied to clipboard

自定义一个继承自QMUIModalPresentationViewController的vc后,只要import后,就会报错

Open kouxuansheng opened this issue 2 years ago • 5 comments

Bug 表现 问题的具体描述 自定义一个继承自QMUIModalPresentationViewController的vc,在需要使用的ViewController中引入后,框架里就会报错,但在其他的视图控制器中引入使用,就并不会报错 截图 Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图 image

kouxuansheng avatar Oct 12 '23 09:10 kouxuansheng

你项目里引入了多个 QMUIKit?比如另一个库也引入了 QMUIKit

MoLice avatar Oct 12 '23 18:10 MoLice

工程里面只有一个QMUIKit,在其他控制器中引入并没有问题,在某些控制器中引入就会报错

kouxuansheng avatar Oct 13 '23 01:10 kouxuansheng

在你项目里全局搜一下定义应该就可以了吧

MoLice avatar Oct 13 '23 08:10 MoLice

不明白你在说什么,好像这个问题只在新版Xcode上会出现,旧版本的没问题

kouxuansheng avatar Oct 16 '23 06:10 kouxuansheng

image image image image 想知道这到底是什么原因引起的报错

kouxuansheng avatar Oct 26 '23 09:10 kouxuansheng