Comments (4)
Yeah, that's a good feature. Given that the groups are synced to disk anyway though, I thought it would be less important, because as far as I know the only downside to using groups as opposed to folder references is that you have to manually manage them, but that isn't an issue with XcodeGen. Would specific problem would this solve for you?
I could imaging it maybe looking like this:
targets:
- name: MyTarget
- sources:
- path: MyTarget
name: MyTarget
type: group
- path: ../MyDirectory
type: folderReference
This would add an optional name property (that defaults to the directory name), and an optional type (which would default to group
). Sources could still be written as an array of strings that use the defaults, or you could specific this more verbose form with more flexibility. And a single source string would still be allow as it is now for simple cases (sources: MyTarget
)
Using the more verbose form would mean you could potentially define an excludes: */*.uglyFiles
for group types as well
What do you think?
from xcodegen.
That's a good one @ImLaufderZeit 😛
from xcodegen.
@yonaskolb, that sounds just awesome.
... Given that the groups are synced to disk anyway though, ..... Would specific problem would this solve for you?
Well, in fact, if #24 has been solved - there is no problem, exactly as you say. But still it's good to have it as an option, because you can manage assets including directory structure which means you can use multiple same name files if parent directory is different.
with folder references you can do below:
Assets/Home/background.png
Assets/SingIn/background.png
while with groups you cannot, since those have identical filenames.
And plus, with folder references you do not have to re-generate a project every time you add a file.
from xcodegen.
Resolves in #151
from xcodegen.
Related Issues (20)
- 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
- Serial Incremental Builds with Xcodegen vs. Parallel Builds with Tuist
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.