We are experiencing crash that occurs when TextInput gets focused in exported view:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate uKeyboardWillChangeFrame:]: unrecognized selector sent to instance 0x1d022d440'
I don’t think this is anything to do with our code - we have a TextInput, which triggers EnableKeyboardResizeNotifications() from Fuse.Platform/iOS/SystemUI.uno where crash occurs.
It is worth restating that crash happens only when we export view and embed it in native app. Everything works fine when running in standalone mode.
If you insist, I can prepare a test case, but I believe any TextInput can trigger that crash.
@Maciek: of course we need a minimal repro. It’s much easier to work with something that is known to crash reliably. Otherwise it’s just random poking at the code in hopes to get the same result you are seeing.
Repro, and exact steps to take to get to the crash, including details on target platforms etc. would be highly appreciated.
In that zip file you’ll find Xcode project that embeds exported view - if you run it on device, you’ll see the exact error I reported in my first post.
This is now becoming more and more pressing matter, as our app would only operate in a embedded view.
Right now we feel kinda cornered as the only thing we can achieve ourselves is to disable problematic notifications, at expense of loosing everything that comes with it (effectively rendering keyboard access useless).
I believe that it isn’t anything we could fix ourselves - however I might be wrong here as my knowledge of iOS internals is limited.
I’d really appreciate any hints on what we could try to mitigate to issue while waiting for official fix
I took that patch, applied it on release-1.8 branch (with a small conflict as SystemUI is no longer public), and when used that fuselibs for exporting a framework, I got keyboard working as expected in native app!
I haven’t tested it inside-out, but crash is definitely gone