Comments (6)
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.
@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.
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.
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.
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.
Closing as custom schemes can be be generated.
Moving discussion here #215
from xcodegen.
Related Issues (20)
- Where should I set the App version? HOT 2
- Specify additional build/run targets for target-scheme HOT 2
- Xcodegen cache bug? HOT 2
- Strange behavior of SwiftUI App HOT 2
- Exclude PrivacyInfo.xcprivacy from Copy Bundle Resources HOT 11
- Xcode removing Package.resolved HOT 8
- Indentation options are not applied to files being part of Packages HOT 1
- Deintegration of GraphViz HOT 1
- Using 'supportedDestinations' with watchOS app doesn't generate an 'Embed Watch Content' build phase HOT 12
- Setting a default device target HOT 1
- Prefetch resource tags (ODR, On Demand Resources) HOT 1
- Specify multiple package products broken HOT 1
- settings DEVELOPMENT_TEAM doesn't work HOT 1
- Sources "name" property ignored if specifying "group"
- Reducing compiled asset size
- is it possible to set different Configs for one `Extension` target when adding as dependency to different `Application` targets ?
- About String Catalogs
- If I set xcconfig files, the grouping is broken
- Build is broken on Xcode 16 Beta 1 due to GraphViz HOT 3
- tvOS Top Shelf is broken when using Xcodegen with Xcode 15 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcodegen.