yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiline script not work?

bimawa opened this issue · comments

When I try to use the multiline script for preActions,postActions a block xcodegen make this script in single line.
CleanShot 2021-11-14 at 12 20 21@2x
It's an issue? Or a feature?

Hi @bimawa - I just happened to come across your question and wondered if you were able to resolve it yourself. For what it's worth, I was able to get multiple lines in a postAction script with the following YAML:

postActions:
    - settingsTarget: MyAppTarget
      script: |
          echo "first line"
          echo "new line"

Can you paste an example of how you've defined the postAction script in your project config?

@Chris-Corea thanks for help. But isn't help.
CleanShot 2021-12-30 at 07 16 25@2x
Which version of xcodegen you using?
My currently is Version: 2.18.0
I'll try to update it.

Damn! On version 2.25.0 isn't reproduced.
OMG why I didn't it before... >.< I guess I'm was under Alchowork.
@Chris-Corea Thanks! I'll fix my ci scripts ^_^!