GithubHelp home page GithubHelp logo

Comments (5)

fortmarek avatar fortmarek commented on June 3, 2024 1

That sounds like a good way forward! We're closing the issue as there's no action item for us here 🙂

from tuist.

pepicrft avatar pepicrft commented on June 3, 2024

Xcode only supports selecting dependencies based on the configuration being built, not on a certain value of a project build setting. You might be able to achieve that with imports implicitly resolved, but I advise not to, because many Xcode features, such as Swift Previews, rely on explicitness to work reliably. Does it answer your question?

from tuist.

malcommac avatar malcommac commented on June 3, 2024

Hi @pepicrft thank you for your quick reply. Per configuration import would be okay; what's the best way to achieve it via Tuist?

from tuist.

pepicrft avatar pepicrft commented on June 3, 2024

Sorry, my bad; I meant destination and not configuration. I think you'll have to resort to build settings magic to conditionally do that, like CocoaPods does, but as I mentioned, this is generally not a good idea.

from tuist.

malcommac avatar malcommac commented on June 3, 2024

Upon further thought, I have come to the conclusion that it would be much easier and faster to send to the Tuist generate (or read via environment variable) a setting that tells me whether to create a project/target that includes that framework or not. This way, I can easily handle this scenario by choosing the best configuration depending on whether it's a development, testing, or production build.

from tuist.

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.