I am using ANT script to automate my iOS build and packaging tasks. As per my current build script, I am passing the desired environment from command line and the script will generate a IPA file for that particular environment.
Basically, it will run the following targets- ValidateParameters, SetupBuildProperties, SetupXcodeSettings, clean, archive & package.
I have to create builds for Dev, QA & UAT
. So, I have to run the script 3 times to have 3 different IPA files. When I pass the environment from command line, I store the same in a ANT property and that will be used in almost all the targets. Because, a property is immutable, that doesn't help me either.
Now, is there any way I can generate all the 3 builds by running the script only once? Not sure how to reset the environment property !!
Please help me.