run method
Executes the Xcrun App Store publishing workflow.
Parses command-line arguments, creates Arguments instance, and initiates the Xcrun publishing process. Handles the complete App Store workflow including validation, file processing, and altool integration.
Process flow:
- Parse and validate command-line arguments
- Create Arguments instance with configuration
- Execute Xcrun altool upload command
- Handle results and error conditions
Returns Future that completes with the exit code:
- 0 = Success (app uploaded successfully)
- Non-zero = Error (upload or validation failed)
Throws exception if required arguments are missing or invalid.
Implementation
@override
Future? run() =>
xcrun.Arguments.fromArgParser(argResults!, globalResults).publish();