Giter Site home page Giter Site logo

Support xcconfig about xcodegen HOT 4 CLOSED

yonaskolb avatar yonaskolb commented on August 25, 2024 3
Support xcconfig

from xcodegen.

Comments (4)

yonaskolb avatar yonaskolb commented on August 25, 2024

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.

toshi0383 avatar toshi0383 commented on August 25, 2024

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.

toshi0383 avatar toshi0383 commented on August 25, 2024

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.

toshi0383 avatar toshi0383 commented on August 25, 2024

🚀

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.