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
[Catalyst][RxCocoa] RxSearchBarDelegateProxy unrecognized selector #2161
Comments
Here's a sample project using Swift Package Manager and RxSwift 5.1.1 that demonstrates the bug. We are not receiving values when subscribing to |
@EricAppel Thanks for the repro. For now i'd use |
I had a look at this one and it seems to be within the I've also run a few other delegate methods like this So maybe this is a Mac Catalyst issue?! not sure... |
@freak4pc did u run for catalyst? that screenshot looks like iOS and the bug only appears on catalyst. |
@dimitris-c did you see any workarounds maybe ? |
Sorry about the confusion. This definitely seems like an issue in Catalyst worth reporting, but I'm not sure where it stems from. Even the raw version of this doesnt work: searchBar.rx
.delegate
.methodInvoked(#selector(UISearchBarDelegate.searchBar(_:textDidChange:))) |
Also, this is specific to |
@freak4pc this seems to be an issue with Catalyst, you can read my previous answer to see my findings. |
I'm happy to write or help promote a radar, but I'm not quite sure what the Catalyst issue is. |
Created a small snippet that can be used to see the issue. On Catalyst the objc runtime doesn't seem to pick up the search bar delegate method, changing the
CatalystIssueOnUISearchBar.m class
|
Thanks for that @dimitris-c. I made a little swift project that replicates based on that snippet and filed a radar with apple: FB7710557 |
@tsabend thank you so much ! Would it be worth to also file on bugs.swift.org ? |
I'm going to close this one or now. |
Short description of the issue:
RxSearchBarDelegateProxy not working on Catalyst.
Expected outcome:
Delegate methods should work like on iOS as it is marked as available on Catalyst on Apple documentation.
What actually happens:
The app crashs with
unrecognized selector sent to instance
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
RxSwift 5.5.1
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
Installation method:
I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)
The text was updated successfully, but these errors were encountered: