Is there any reason that xcodegen --version was removed in update 2.1?
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.
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
Most helpful comment
xcodegen versionoutputsVersion: X.Y.Zwhile-vwould outputX.Y.Zif I remember correctly. Seems as output format is different which breaks some of my scripts.