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)
- info.plist with settings
- Support input files for build rules
- Swift Macros support HOT 1
- Add shell to ExecutionAction
- How to make a target extension via xcodegen ? HOT 1
- VSCode extension HOT 2
- X1 HOT 1
- Generate acknowledgement in Settings bundle HOT 5
- Local Packages Not Displayed in Project Package Dependencies List HOT 2
- supportedDestinations doesn't work, all platforms are displayed in Xcode HOT 2
- `swift run xcodegen` fails HOT 1
- Why Isn't watchOS a Supported Destination? HOT 1
- Add DESTDIR support to Makefile HOT 2
- Can't specify preferredScreenCaptureFormat in scheme's test actions HOT 1
- XcodeGenKit/resource_bundle_accessor.swift:44: Fatal error: unable to find bundle named XcodeGen_XcodeGenKit HOT 17
- XcodeGen doesn't support the full set of C++ file extensions that Xcode itself does
- [BUG] Optional source path doesn't work if executing xcodegen from outer directory
- Where should I set the App version? HOT 2
- Specify additional build/run targets for target-scheme HOT 2
- Xcodegen cache bug? HOT 2
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.