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

Class Method Details

.authorObject



337
338
339
# File 'lib/fastlane/actions/xcodebuild.rb', line 337

def self.author
  "dtrenz"
end

.available_optionsObject



345
346
347
348
349
350
351
352
353
354
# File 'lib/fastlane/actions/xcodebuild.rb', line 345

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'],
    ['output_style', 'Set the output format to one of: :standard (Colored UTF8 output, default), :basic (black & white ASCII outout)']
  ]
end

.descriptionObject



333
334
335
# File 'lib/fastlane/actions/xcodebuild.rb', line 333

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


341
342
343
# File 'lib/fastlane/actions/xcodebuild.rb', line 341

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

.run(params) ⇒ Object



327
328
329
330
331
# File 'lib/fastlane/actions/xcodebuild.rb', line 327

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