chat-ios icon indicating copy to clipboard operation
chat-ios copied to clipboard

swift两协议方法冲突

Open devintangbohu opened this issue 3 years ago • 3 comments

swift 同时遵守EMMultiDevicesDelegate,EMClientDelegate协议,添加代理的时候,都是调用EMClient.shared().add(self, delegateQueue: nil) ,导致报错Ambiguous use of 'add(_:delegateQueue:)'

devintangbohu avatar Jul 16 '22 07:07 devintangbohu

已经在3.9.5新版本解决,addMultiDeviceDelegate

zjc19891106 avatar Jul 22 '22 10:07 zjc19891106

可以做一个中转类暂时,传client过去添加,暂时解决方案

zjc19891106 avatar Jul 22 '22 10:07 zjc19891106

好的

devintangbohu avatar Jul 22 '22 11:07 devintangbohu