Module: XcodeArchiveCache

Defined in:
lib/logs/logs.rb,
lib/config/dsl.rb,
lib/config/config.rb,
lib/runner/runner.rb,
lib/command/inject.rb,
lib/shell/executor.rb,
lib/build/performer.rb,
lib/command/command.rb,
lib/build_graph/node.rb,
lib/build_graph/graph.rb,
lib/injection/storage.rb,
lib/injection/injector.rb,
lib/build_graph/builder.rb,
lib/xcode-archive-cache.rb,
lib/xcodebuild/executor.rb,
lib/build_settings/filter.rb,
lib/build_settings/loader.rb,
lib/build_settings/parser.rb,
lib/modulemap/file_handler.rb,
lib/artifact_cache/archiver.rb,
lib/build/product_extractor.rb,
lib/injection/headers_mover.rb,
lib/build_settings/extractor.rb,
lib/build_graph/sha_calculator.rb,
lib/injection/pods_script_fixer.rb,
lib/modulemap/header_path_fixer.rb,
lib/artifact_cache/local_storage.rb,
lib/injection/dependency_remover.rb,
lib/injection/framework_embedder.rb,
lib/build_graph/rebuild_evaluator.rb,
lib/injection/build_flags_changer.rb,
lib/artifact_cache/abstract_storage.rb,
lib/modulemap/header_path_extractor.rb,
lib/build_graph/native_target_finder.rb,
lib/injection/pods_xcframework_fixer.rb,
lib/artifact_cache/artifact_extractor.rb,
lib/build_settings/string_interpolator.rb

Defined Under Namespace

Modules: ArtifactCache, Build, BuildGraph, BuildSettings, Injection, Logs, Modulemap, Shell, Xcodebuild Classes: Command, Config, Informative, Runner

Class Method Summary collapse

Class Method Details

.report_error(exception) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/command/command.rb', line 29

def self.report_error(exception)
  case exception
  when Interrupt
    info("Cancelled")
    exit 1
  when SystemExit
    raise
  else
    if ENV["XCODE_ARCHIVE_CACHE_ENV"] != "development"
      error(exception.message)
      exit 1
    else
      raise exception
    end
  end
end