Sha256: be7c581a5cd62a6092468dfdff487d02636928dd0e845cfca7103168cef4941b

Contents?: true

Size: 1014 Bytes

Versions: 3

Compression:

Stored size: 1014 Bytes

Contents

module Fastlane
  module Actions
    class RecreateSchemesAction < Action
      def self.run(params)
        require 'xcodeproj'

        UI.message("Recreate schemes for project: #{params[:project]}")

        project = Xcodeproj::Project.open(params[:project])
        project.recreate_user_schemes
      end

      def self.description
        "Recreate not shared Xcode project schemes"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(
            key: :project,
            env_name: "XCODE_PROJECT",
            description: "The Xcode project"
          )
        ]
      end

      def self.authors
        "jerolimov"
      end

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

      def self.example_code
        [
          'recreate_schemes(project: "./path/to/MyApp.xcodeproj")'
        ]
      end

      def self.category
        :project
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane_hotfix-2.165.0 fastlane/lib/fastlane/actions/recreate_schemes.rb
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/actions/recreate_schemes.rb