Class: Fastlane::Actions::XccleanAction

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, output, return_value, sh, step_text

Class Method Details

.authorObject



442
443
444
# File 'lib/fastlane/actions/xcodebuild.rb', line 442

def self.author
  "dtrenz"
end

.available_optionsObject



450
451
452
453
454
455
456
457
458
459
460
461
462
463
# File 'lib/fastlane/actions/xcodebuild.rb', line 450

def self.available_options
  [
    ['archive', 'Set to true to build archive'],
    ['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



438
439
440
# File 'lib/fastlane/actions/xcodebuild.rb', line 438

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


446
447
448
# File 'lib/fastlane/actions/xcodebuild.rb', line 446

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

.run(params) ⇒ Object



432
433
434
435
436
# File 'lib/fastlane/actions/xcodebuild.rb', line 432

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