-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DelegateProxy crash by implementing methodSignatureForSelector #2546
Fix DelegateProxy crash by implementing methodSignatureForSelector #2546
Conversation
Solutionme and @sejal-hotstar investigated the crash reported in #2428, we found that there is a bug in Few more detailsDelegateProxy works fully correctly when handling only the methods defined in related Delegate protocols. But what happens when I try to call method that is not defined by any delegate protocol, but is implemented by native delegate object? In our case with that And there is some new Apple internal framework that was introduces in iOS 15.6, that probably relates to accessability features. This framework iterate over each element on the screen (and its delegate methods) to find string by using objc runtime and method Overally, this issue can be easily found if |
@yan-zaitsev-hs @sejal-hotstar Great find! Should we revert the patch introduced in #2445? Can we write a short test to verify this is no longer crashing? By calling those methods in the order we expect them to be called by internal Apple frameworks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! I'm also wondering if we should revert the other fix or it's "fine" to leave both. Any thoughts?
I'll try to cut a release later tonight 💪 |
It appears that 'Sources/RxCocoa/RxDelegateProxyCrashFix.swift' is referencing a file that has been deleted in this PR. Can you please confirm? |
@freak4pc nudging this verrrrrrrrrry slightly. Any way this is going out in a release within the next week or so? |
I'm sorry, we've been through many sleepless nights these past few weeks and I haven't been able to get much work done. I'll do my best to get to this soon. |
No description provided.