Sha256: 4956ce81548e108549d9a9cd8335ef5e3b76b60877ea4e52869016c3ba46fff5

Contents?: true

Size: 1.27 KB

Versions: 25

Compression:

Stored size: 1.27 KB

Contents

module Fastlane
  module Actions
    class ClearDerivedDataAction < Action
      def self.run(options)
        path = File.expand_path(options[:derived_data_path])
        Helper.log.info "Derived Data path located at: #{path}"
        FileUtils.rm_rf(path) if File.directory?(path)
        Helper.log.info "Successfully cleared Derived Data ♻️".green
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Deletes the Xcode Derived Data"
      end

      def self.details
        "Deletes the Derived Data from '~/Library/Developer/Xcode/DerivedData' or a supplied path"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :derived_data_path,
                                       env_name: "DERIVED_DATA_PATH",
                                       description: "Custom path for derivedData",
                                       default_value: "~/Library/Developer/Xcode/DerivedData")
        ]
      end

      def self.output
      end

      def self.authors
        ["KrauseFx"]
      end

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fastlane-1.66.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.65.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.64.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.63.1 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.63.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.62.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.61.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.60.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.59.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.58.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.57.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.56.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.55.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.54.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.53.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.52.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.51.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.50.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.49.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.48.0 lib/fastlane/actions/clear_derived_data.rb