run method

  1. @override
Future? run()
override

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:

  1. Parse and validate command-line arguments
  2. Create Arguments instance with configuration
  3. Execute Xcrun altool upload command
  4. 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();