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

Class Method Details

.authorObject



276
277
278
# File 'lib/fastlane/actions/xcodebuild.rb', line 276

def self.author
  "dtrenz"
end

.available_optionsObject



284
285
286
287
288
289
290
291
292
# File 'lib/fastlane/actions/xcodebuild.rb', line 284

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

.descriptionObject



272
273
274
# File 'lib/fastlane/actions/xcodebuild.rb', line 272

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


280
281
282
# File 'lib/fastlane/actions/xcodebuild.rb', line 280

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

.run(params) ⇒ Object



266
267
268
269
270
# File 'lib/fastlane/actions/xcodebuild.rb', line 266

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