Coder Social home page Coder Social logo

Comments (9)

stackotter avatar stackotter commented on August 25, 2024 1

Thanks for reporting this. I've pushed a fix to swift-bundler-templates now, it seems to be working on my end. Hopefully running swift bundler templates update and creating a new project from the template should fix your issue.

Feel free to reopen the issue if you still face any problems with the template!

from swift-bundler.

stackotter avatar stackotter commented on August 25, 2024 1

Ah, try switching that to the v3 branch, I’ll have to look into that issue.

from swift-bundler.

benjiwolff avatar benjiwolff commented on August 25, 2024 1

Got this to finally work after switching to the main branch of swift-bundler and running swift bundler templates update.

from swift-bundler.

benjiwolff avatar benjiwolff commented on August 25, 2024

Apparently, your change has not arrived in swift-bundler-templates. Push harder! 😉

from swift-bundler.

stackotter avatar stackotter commented on August 25, 2024

I’m pretty sure it did: https://github.com/stackotter/swift-bundler-templates/tree/v3. It’s only on the v3 branch (main is v1, due to not planning ahead when I was designing the templating system lol. If you have the latest commit of swift bundler, it should be using the v3 templates.

from swift-bundler.

benjiwolff avatar benjiwolff commented on August 25, 2024

Ah, I see. That explains why it should work now. However, I just ran

swift bundler templates update
swift bundler create MetalSwiftUI --templates MetalSwiftUI
cd MetalSwiftUI
swift bundler run

and got the same error still. 🤔

from swift-bundler.

benjiwolff avatar benjiwolff commented on August 25, 2024

Could it be possble, that the class is still used since the MetalSwiftUI package is constrained to only macOS 11 and up instead of 13 and up?

from swift-bundler.

stackotter avatar stackotter commented on August 25, 2024

Could it be possble, that the class is still used since the MetalSwiftUI package is constrained to only macOS 11 and up instead of 13 and up?

Nah, the availability checks are performed at runtime so that shouldn’t be an issue.

Ah, I see. That explains why it should work now. However, I just ran

swift bundler templates update
swift bundler create MetalSwiftUI --templates MetalSwiftUI
cd MetalSwiftUI
swift bundler run

and got the same error still. 🤔

If you go to ~/Library/Application Support/dev.stackotter.swift-bundler/templates you should find yourself in a clone of swift-bundler-templates. What’s the branch and latest commit?

In your commands you used --templates which should be --template, but the command worked so I’m assuming that’s just a GitHub issues typo.

from swift-bundler.

benjiwolff avatar benjiwolff commented on August 25, 2024

The branch is main and the commit is ff8c6dacbdb0f6717a9c2bc3f2c285c3a12d63ec. 😅

from swift-bundler.

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.