Giter Club home page Giter Club logo

Comments (6)

yonaskolb avatar yonaskolb commented on May 16, 2024

Not sure what you mean here @ImLaufderZeit?
The only way to generate shared schemes is by specifying a target scheme, or the as yet undocumented top level schemes.
Are you wanting that these generated schemes be optionally made private?

The rest of the private schemes are generated by xcode when you open the project for every target. In Xcode 9 they changed it slightly in that the automatic private schemes aren't written to disk unless you edit them.

from xcodegen.

ImLaufderZeit avatar ImLaufderZeit commented on May 16, 2024

@yonaskolb, sorry not mentioning any envs or details.
First of all, I'm on Xcode 9 GM and XcodeGen 0.6.1 via brew.

Well, under Xcode 8.3.3 & XcodeGen 0.6.1, xcodebuild -list did show scheme names even if it's not checked as Shared. But under Xcode 9 GM & XcodeGen 0.6.1, the command would no longer list schemes unless you manually check Shared on.

So, I was bypassing this by adding spec below:

    scheme:
      configVariants:
        null

But that would no longer works after #50, so I thought it would be nice to have it as an option.

from xcodegen.

yonaskolb avatar yonaskolb commented on May 16, 2024

Ahh I see, you want to simply create a shared scheme right? But you don't want to create config variants as you are just using the default configs, and you have no test targets. That's an interesting point. To fix it, it comes down to how how to specify an empty map in yaml, so it still parses correctly. You can do that with {}

scheme: {}

To make this easier to control, maybe a some sort of shareScheme option would be good as you say.

By the way to specify an empty array like you were trying to do with configVariants just use [] (even though you shouldn't need to do that specifically due to the solution above

configVariants: []

Remember that json is a subset of yaml, so any json format is perfectly fine in a yaml file.

from xcodegen.

ImLaufderZeit avatar ImLaufderZeit commented on May 16, 2024

Ahh I see, you want to simply create a shared scheme right? But you don't want to create config variants as you are just using the default configs, and you have no test targets.

Riiight, yes, yes! That's exactly what I wanted to describe. Only default configs, no test targets and single target and scheme.

scheme: {}

This worked charmingly!! Well, I think I need to learn more how json and yaml works.
Thanks for this 👍

from xcodegen.

ImLaufderZeit avatar ImLaufderZeit commented on May 16, 2024

Oops, though I closed this issue, I'm totally agreed with:

To make this easier to control, maybe a some sort of shareScheme option would be good as you say.

But scheme: {} works, so later and later. There are issues that has higher priority I guess.

from xcodegen.

yonaskolb avatar yonaskolb commented on May 16, 2024

Closing as custom schemes can be be generated.
Moving discussion here #215

from xcodegen.

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.