Class: Fastlane::Actions::XcarchiveAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/xcodebuild.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, method_missing, other_action, output, return_value, sh, step_text

Class Method Details

.authorObject



375
376
377
# File 'lib/fastlane/actions/xcodebuild.rb', line 375

def self.author
  "dtrenz"
end

.available_optionsObject



383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'lib/fastlane/actions/xcodebuild.rb', line 383

def self.available_options
  [
    ['archive_path', 'The path to archive the to. Must contain `.xcarchive`'],
    ['workspace', 'The workspace to use'],
    ['scheme', 'The scheme to build'],
    ['build_settings', 'Hash of additional build information'],
    ['xcargs', 'Pass additional xcodebuild options'],
    ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII output)'],
    ['buildlog_path', 'The path where the xcodebuild.log will be created, by default it is created in ~/Library/Logs/fastlane/xcbuild'],
    ['raw_buildlog', 'Set to true to see xcodebuild raw output. Default value is false'],
    ['xcpretty_output', 'specifies the output type for xcpretty. eg. \'test\', or \'simple\'']
  ]
end

.descriptionObject



371
372
373
# File 'lib/fastlane/actions/xcodebuild.rb', line 371

def self.description
  "Archives the project using `xcodebuild`"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


379
380
381
# File 'lib/fastlane/actions/xcodebuild.rb', line 379

def self.is_supported?(platform)
  [:ios, :mac].include? platform
end

.run(params) ⇒ Object



365
366
367
368
369
# File 'lib/fastlane/actions/xcodebuild.rb', line 365

def self.run(params)
  params_hash = params || {}
  params_hash[:archive] = true
  XcodebuildAction.run(params_hash)
end