Giter VIP home page Giter VIP logo

Comments (5)

zhuhaow avatar zhuhaow commented on July 28, 2024

That's strange because iOS and macOS framework are compiled with the exactly same source files. Do you have any idea why this may happen?

from nekit.

simpzan avatar simpzan commented on July 28, 2024

I think it maybe an Carthage issue, I just encountered this issue when using carthage update NEKit.
Then I manually download the repo and add it to xcode as subproject, there's no issue.

from nekit.

zhuhaow avatar zhuhaow commented on July 28, 2024

It seems like the pre-compiled version has wrong header though I do not know why.

I recommend you to try to use

carthage update --no-use-binaries --platform mac,iOS

to compile all frameworks yourself.

from nekit.

simpzan avatar simpzan commented on July 28, 2024

@zhuhaow I just tested again use the command you provide, the issue remains.

the cartfile

github "zhuhaow/NEKit" "0.2.2"

Xcode 7.3.1 on Mac OS 10.11.6

from nekit.

zhuhaow avatar zhuhaow commented on July 28, 2024

Well, I think I know how to solve it though I still do not understand why there is such difference between macOS and iOS.
If you are using NEKit with a swift project, then everything should be fine, these header files can be ignored (as far as I've tested).
If you want to use NEKit with objective-c, which I DO NOT recommend (honestly, why would you develop a new project with objective-c?), it means every class that you want to use must be a subclass of NSObject (or any class from objective-c runtime), it is probably also required to mark them with @objc.
Though it is not difficult to do, that is something I do not like very much, and I'm not sure about the performance impaction of it.

from nekit.

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.