Code Monkey home page Code Monkey logo

Comments (7)

Danappelxx avatar Danappelxx commented on August 19, 2024 3

Can anyone create a summary of how to use Commandant in a CLI Xcode project (and put it in the README)? Sure, I could look through Carthage's source, but there's a lot more to Carthage than just Commandant, so I would be wasting my time looking through it.
Thanks

from commandant.

vknabel avatar vknabel commented on August 19, 2024 2

The easiest way probably is to use the SwiftPM and generating the xcodeproj.

$ swift package init --type executable
Then adding Commandant as dependency.
At the end just run
$ swift package generate-xcodeproj

from commandant.

mdiep avatar mdiep commented on August 19, 2024

You have to jump through some hoops to use Swift in a CLI tool. I'd try to copy what Carthage does.

from commandant.

neilpa avatar neilpa commented on August 19, 2024

The root of the problem is that CLI tools statically link the swift stdlib while frameworks dynamically link it. AFAIK there's no way to force dynamic linkage of the stdlib for non-app bundles (c.f. Carthage/Carthage#16).

from commandant.

griffin-stewie avatar griffin-stewie commented on August 19, 2024

I agree with @Danappelxx . I need some simple template project for creating CLI tool with Commandant. Carthage it self is too complicated as starting point to learn how to use Commandant.

from commandant.

mdiep avatar mdiep commented on August 19, 2024

This would be a great thing to add to the Commandant repo. PRs welcome!

from commandant.

griffin-stewie avatar griffin-stewie commented on August 19, 2024

Thank you @vknabel . It works!

from commandant.

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.