trapeze icon indicating copy to clipboard operation
trapeze copied to clipboard

Enable editing `.xcconfig` files or other key=value based files

Open leo-jnesis opened this issue 3 years ago • 2 comments

Hi guys ! Amazing job on this project, as always ❤️

We have a project which takes advantage of XCode Configuration Files to easily handle debug/release builds (https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project)

I might have missed it in the docs, but it seems we can't update those kind of files. I would imagine using it a bit like json where we would directly target the right property and set its value :

  - file: ios/App/Configs/base.xcconfig
    set: 
      MARKETING_VERSION: 4.3.2

Thanks !

leo-jnesis avatar Aug 08 '22 19:08 leo-jnesis

Correct, these aren't supported yet but certainly fair game. I'll add this as a future enhancement idea. Thanks!

mlynch avatar Aug 18 '22 18:08 mlynch

This file format is simple but not really documented at all. More info here for future reference https://pewpewthespells.com/blog/xcconfig_guide.html

mlynch avatar Aug 30 '22 17:08 mlynch

With the custom parser work done to support .strings files in #116, this should be doable

mlynch avatar Dec 01 '22 20:12 mlynch

Must have forgotten to close this because this was shipped a while back: https://trapeze.dev/docs/Operations/ios#xcconfig

mlynch avatar May 22 '23 19:05 mlynch