Comments (4)
Hi @toshi0383, thanks for the suggestions!
Yeah, you're right there's no way to specify a project's xcconfig file. Setting configFiles
on a target should be working though. Is it not?
In terms of adding them to the project, I'd like to keep defining configurations and applying xcconfig files in seperate dictionaries. While it's not hugely documented at the moment the include
feature is highly used by myself and others, and seperating them makes the feature work better. Also it's nice to keep consistency between a project and a target in how things are defined.
About the renaming, I agree maybe configs
to configurations
would be better. I'd like to keep configFiles
though, but would be open to configurationFiles
. In either case, both the project and target properties should match.
Obviously both of these are breaking changes, so would need a major version bump, or still read the old values.
Feel free to get a PR up and going! 👍
from xcodegen.
Yeah, you're right there's no way to specify a project's xcconfig file. Setting configFiles on a target should be working though. Is it not?
Yeah maybe my spec is wrong. Would you mind sharing a working example spec for me?
In terms of adding them to the project, I'd like to keep defining configurations and applying xcconfig files in seperate dictionaries.
Could you share outline spec? I don't see the whole picture yet, since I haven't used include
feature.
It's XcodeGen specific feature, right?
I agree maybe configs to configurations would be better.
Alright. I will fix this maybe in different PR.
I'd like to keep configFiles though, but would be open to configurationFiles. In either case, both the project and target properties should match.
Great! I will take configurationFiles
, because it's better suited to the Cocoa API naming conventions.
Obviously both of these are breaking changes, so would need a major version bump, or still read the old values.
Sure, I am going to at first deprecate it and add warning message when people use the old values.
[warning] configFile is deprecated. Use configurationFiles instead.
from xcodegen.
Could you share outline spec? I don't see the whole picture yet, since I haven't used
include
feature.
So this is what I came up with. What do you think?
name: MyProject
configurations:
Debug: debug
OTA: release
Release: release
configurationFiles:
Debug: configs/MyApp-Debug.xcconfig
OTA: configs/MyApp-OTA.xcconfig
Release: configs/MyApp-Release.xcconfig
targets:
MyApp:
type: application
platform: iOS
sources: Sources/MyApp
settings:
PRODUCT_BUNDLE_IDENTIFIER: jp.toshi0383.hello
configurationFiles:
Debug: configs/MyApp-Debug.xcconfig
OTA: configs/MyApp-OTA.xcconfig
Release: configs/MyApp-Release.xcconfig
from xcodegen.
🚀
from xcodegen.
Related Issues (20)
- 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
- Error building XcodeGen as a dependency
- Build failure due to concurrency issue since Xcode 16 Beta 5 HOT 1
- Replace SwiftCLI to swift-argument-parser
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.