Coder Social home page Coder Social logo

Comments (3)

krzysztofzablocki avatar krzysztofzablocki commented on May 18, 2024 1

a PR with annotations would be great 👍

from lifetimetracker.

krzysztofzablocki avatar krzysztofzablocki commented on May 18, 2024

hmm weird, the code works fine in our objc example, can you try adding @objc attribution to the initializer in your local pod checkout and see if it helps, I didn't expect this to be needed but maybe ?

from lifetimetracker.

ajfigueroa avatar ajfigueroa commented on May 18, 2024

@krzysztofzablocki Apologies for the delay! I was able to reproduce this more reliably now that I understand it better. Adding the @objc does indeed fix the issue though.

The ExampleObjc project works fine because the pod itself is on Swift 3 as shown here.
If you run the migrator so that it converts LifetimeTracker to Swift 4 which will require no syntax change then you'll see the following deprecation warning:

screen shot 2018-02-14 at 2 07 47 pm

This matches what is happening in my project since I have a mixed Obj-C/Swift 4 codebase which requires the explicit @objc annotations. I didn't run the migrator on the Pod when I installed it but it was automatically set to Swift 4.

I can make a PR to annotate all the public methods with @objc or should it be done on a per need basis?

from lifetimetracker.

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.