Class: Fastlane::Actions::XccleanAction

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

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES

Class Method Summary collapse

Methods inherited from Fastlane::Action

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

Class Method Details

.authorObject



491
492
493
# File 'lib/fastlane/actions/xcodebuild.rb', line 491

def self.author
  "dtrenz"
end

.available_optionsObject



499
500
501
502
503
504
505
506
507
508
509
510
511
512
# File 'lib/fastlane/actions/xcodebuild.rb', line 499

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

.categoryObject



487
488
489
# File 'lib/fastlane/actions/xcodebuild.rb', line 487

def self.category
  :building
end

.descriptionObject



477
478
479
# File 'lib/fastlane/actions/xcodebuild.rb', line 477

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

.example_codeObject



481
482
483
484
485
# File 'lib/fastlane/actions/xcodebuild.rb', line 481

def self.example_code
  [
    'xcclean'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


495
496
497
# File 'lib/fastlane/actions/xcodebuild.rb', line 495

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

.run(params) ⇒ Object



471
472
473
474
475
# File 'lib/fastlane/actions/xcodebuild.rb', line 471

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