Sha256: 44719bae121a3a86cdaee909dd12984c68700b963d44f13e7ac390f916c8afb5

Contents?: true

Size: 1.26 KB

Versions: 37

Compression:

Stored size: 1.26 KB

Contents

module Fastlane
  module Actions
    class ClearDerivedDataAction < Action
      def self.run(options)
        path = File.expand_path(options[:derived_data_path])
        UI.message("Derived Data path located at: #{path}")
        FileUtils.rm_rf(path) if File.directory?(path)
        UI.success("Successfully cleared Derived Data ♻️")
      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

37 entries across 37 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.103.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.102.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.101.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.100.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.99.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.98.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.97.2 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.97.1 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.97.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.96.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.95.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.94.1 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.94.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.93.1 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.93.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.92.0 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/clear_derived_data.rb
fastlane-1.91.0 lib/fastlane/actions/clear_derived_data.rb