Giter Club home page Giter Club logo

Comments (8)

rigor789 avatar rigor789 commented on May 24, 2024

@PeterStaev I think that's a change in ios 13.4 and above that uses mangled class names

maybe related: 2b89d7c
same in the JSC runtime: NativeScript/ios-jsc@265c6b6

Since iOS 13.4 object_getClassName and similar functions have started
returning the mangled Swift class names instead of the demangled ones
that previous versions did.

from ios.

PeterStaev avatar PeterStaev commented on May 24, 2024

@rigor789 I would agree, but the same code works perfectly fine with JSC. Basically on the demo app, I uninstalled @nativescript/ios and installed tns-ios and the code started working. This is running on a iOS 13.5 sim.

I wouldn't mind the class naming if the XIB could be loaded correctly 😄 Seems JSC somehow correctly registers the class/XIB so it can be loaded, while v8 doesn't.

from ios.

PeterStaev avatar PeterStaev commented on May 24, 2024

Hmm reading the comment from Darin, seems nested classes are always used with their mangled names.

from ios.

PeterStaev avatar PeterStaev commented on May 24, 2024

A quick follow up - a workaround seems to be to decorate the view controller with @objc(<CLASS NAME>). This causes the class to not be nested and seems registered correctly.

from ios.

mvargaslandolfi1993 avatar mvargaslandolfi1993 commented on May 24, 2024

Hi @PeterStaev. i have the same problem, how do you solved?

from ios.

PeterStaev avatar PeterStaev commented on May 24, 2024

Hey @mvargaslandolfi1993, see the comment just above yours :)

from ios.

mvargaslandolfi1993 avatar mvargaslandolfi1993 commented on May 24, 2024

Yes, I see, but I don't understand where to change it.

from ios.

Robernator avatar Robernator commented on May 24, 2024

Hi @PeterStaev,

I want to use your photo-editor and having the same problem aas described above.
You mentioned a workaround with the view controller with @objc decoration, I really don't know where to change the code.
I hope you can help me.

from ios.

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.