Xcodegen: xcodegen --version was removed in update 2.1?

Created on 18 Dec 2018  路  6Comments  路  Source: yonaskolb/XcodeGen

Is there any reason that xcodegen --version was removed in update 2.1?

bug question

Most helpful comment

xcodegen version outputs Version: X.Y.Z while -v would output X.Y.Z if I remember correctly. Seems as output format is different which breaks some of my scripts.

All 6 comments

Hmm, looks like a regression with the change of the command architecture. xcodegen version works however. Is that sufficient for your needs or do you require backwards compatibility for --version?

xcodegen version outputs Version: X.Y.Z while -v would output X.Y.Z if I remember correctly. Seems as output format is different which breaks some of my scripts.

Here is the commit that broke it https://github.com/yonaskolb/XcodeGen/commit/07cd5a4a0b120e1c5fce128098c447abbbb7333b#diff-37ca2dd15ca0f6b1b49e78db084ef5b9

Moving from Commander to SwiftCLI. No big deal for me, easy to fix scripts, but in case it is an issue for others.

If it needed to be fixed, could probably set the default version command to nil and add a custom Flag to output the old format.

https://github.com/jakeheis/SwiftCLI#version-command

For context, do you use this for locking to a specific version?

For locking and for easy setup. Script reads version required by project and will download the appropriate zip from release branch and unzip locally if version is different or xcodegen does not exist locally. By locally I mean local to the project.

Ah yes, I鈥檝e done the same in the past. I use https://github.com/yonaskolb/Mint with a Mintfile for that now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

djbe picture djbe  路  6Comments

igorkulman picture igorkulman  路  5Comments

nzhuk picture nzhuk  路  4Comments

brentleyjones picture brentleyjones  路  6Comments

mohammdsss1 picture mohammdsss1  路  6Comments