Giter Club home page Giter Club logo

Comments (10)

hackiftekhar avatar hackiftekhar commented on June 2, 2024

I'm unable to reproduce this problem in the demo project. Can you please provide a demo?

from iqkeyboardmanager.

Joost-Jens-Luminis avatar Joost-Jens-Luminis commented on June 2, 2024

Hi Hackiftekhar,

Thanks for having a quick look. To be honest, I did omit a view details: We are using .Net and are importing a linked .a file from your project.
This was working so far but stopped working in .Net 8 and xcode 15.
We were hoping you had an idea as to where we could look for this issue, along the lines of "Ah, that is probably this setting".

That said, we have since implemented a very simple version of our own pure in C# code, so this isn't as urgent anymore (even though your library provides better results).

If you want, I can still provide a demo in .Net version probably, else you can close this issue.

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on June 2, 2024

@Joost-Jens-Luminis as you are using .Net and importing .a file from this project. I'm now more interested to know that if you are using the Objective-C version of the library or the Swift version of the library? So that I can look specific code.

from iqkeyboardmanager.

Joost-Jens-Luminis avatar Joost-Jens-Luminis commented on June 2, 2024

I was using the Objective-C version of the library.

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on June 2, 2024

Are you sure you have set the ForceLoad = true?

[assembly: LinkWith ("IQKeyboardManager.a", SmartLink = true, ForceLoad = true)]

from iqkeyboardmanager.

Joost-Jens-Luminis avatar Joost-Jens-Luminis commented on June 2, 2024

ForceLoad is false in our case. Could that be the issue?

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on June 2, 2024

I know that there is a problem when having Objective-C category inside static library, the Xcode does not load them by default.

We have to force load it. Some description here:- https://stackoverflow.com/a/3998700

I can see your project is not able to find viewContainingController variable which is inside a UIView category in code. So you should be looking relevant option how you can set -all_load to the Other Linker Flags in your project.

from iqkeyboardmanager.

Joost-Jens-Luminis avatar Joost-Jens-Luminis commented on June 2, 2024

That sounds like a clue, I will look into this tomorrow (I don't have my Mac with me at the moment) and get back to you.

from iqkeyboardmanager.

hackiftekhar avatar hackiftekhar commented on June 2, 2024

Sure! I assume the ForceLoad = true is the same thing which -all_load do in Xcode projects. So try it very first.

from iqkeyboardmanager.

Joost-Jens-Luminis avatar Joost-Jens-Luminis commented on June 2, 2024

Unfortunately it didn't solve the issue. We get the same error, the good thing though is that now the exception comes in managed code rather then the unmanaged code, this means we can handle the exception earlier and it doesn't resolve in an unhandled exception. But that doesn't help with solving the error I think.

Due to our internal timelines, we have already put a work around in place (some custom code of our own in C# rather then your library). After internal discussions we have decided to keep this for now rather then to put more resources into finding a solution that works with your library.

This decision is based on the fact that; .Net 8 isn't released yet (it's in release candidate status at the moment), the current implementation is basically a .Net library which links to a static objective-c library, which contains a copy of your code and a pure C# implementation is better manageable by us (we have no objective-c/ios experts in our team).

That said, if you feel you want to continue the research into this let me know and I will to try and help you out in my spare time, else feel free to close this ticket.

I do want to thank you for your time though. It's much appreciated.

from iqkeyboardmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.