Giter Club home page Giter Club logo

Comments (7)

warrenm avatar warrenm commented on July 29, 2024

A couple of times a year, I waste of a day of my life trying to get SPM to work, and every single time, it's a miserable experience. I have made the offer before (#23) that if someone wants to contribute a working Project.swift file, I'll do my best not to break it. I haven't had any takers so far.

The problem is that many aspects of this project (use of multiple languages, idiosyncratic directory structure, using a framework target rather than a static library) go against the grain of SPM's assumptions, and coaxing it into building a usable library while maintaining compatibility across Obj-C and Swift seems nearly impossible.

In the meantime, if you want to incorporate GLTFKit2 into your project as a framework, you can add the self-contained GLTFKit2 project as a subproject of your Xcode workspace. This will make the GLTFKit2.framework target available in the scope of the workspace, and you can link to it in your own app target(s).

from gltfkit2.

warrenm avatar warrenm commented on July 29, 2024

It is now possible to consume GLTFKit2 as an xcframework in Swift projects without the need to compile it yourself or add the project to a workspace. Future tagged releases (starting with 0.5.1) will include updated binaries that incorporate support for KTX2 textures. Draco support remains optionally available via the existing plug-in architecture.

If you have questions or difficulty incorporating the framework in this way, this issue will remain open for the next seven days. Beyond that time, please file new issues detailing your problem or feature request.

from gltfkit2.

JohanAlbrectsen avatar JohanAlbrectsen commented on July 29, 2024

Thank you, will try :)

from gltfkit2.

JohanAlbrectsen avatar JohanAlbrectsen commented on July 29, 2024

It works now with SPM now, you're a hero! You've saved our team, thank you very much!

from gltfkit2.

warrenm avatar warrenm commented on July 29, 2024

Delighted to hear it :)

from gltfkit2.

myselfuser1 avatar myselfuser1 commented on July 29, 2024

Any support for Cocoapods?

from gltfkit2.

warrenm avatar warrenm commented on July 29, 2024

Please don't make new requests on closed issues.

But no, we don't expect to ever support Cocoapods.

from gltfkit2.

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.