Sha256: 7fe2dac703e6f5b8a1a01486870d14fb23c93adc6ff52daadf8f0935c987cb74

Contents?: true

Size: 1.67 KB

Versions: 14

Compression:

Stored size: 1.67 KB

Contents

module Fastlane
  module Actions
    # See: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
    #
    # DESCRIPTION
    #   xcode-select controls the location of the developer directory used by xcrun(1), xcodebuild(1), cc(1),
    #   and other Xcode and BSD development tools. This also controls the locations that are searched for  by
    #   man(1) for developer tool manpages.
    #
    # DEVELOPER_DIR
    #   Overrides the active developer directory. When DEVELOPER_DIR  is  set,  its  value  will  be  used
    #   instead of the system-wide active developer directory.
    #
    #   Note that for historical reason, the developer directory is considered to be the Developer content
    #   directory inside the Xcode application (for  example  /Applications/Xcode.app/Contents/Developer).
    #   You  can  set  the  environment variable to either the actual Developer contents directory, or the
    #   Xcode application directory -- the xcode-select provided  shims  will  automatically  convert  the
    #   environment variable into the full Developer content path.
    #
    class XcodeSelectAction
      def self.run(params)
        xcode_path = params.first

        # Verify that a param was passed in
        raise "Path to Xcode application required (e.x. \"/Applications/Xcode.app\")".red unless xcode_path.to_s.length > 0

        # Verify that a path to a directory was passed in
        raise "Nonexistent path provided".red unless Dir.exists? xcode_path

        Helper.log.info "Setting Xcode version to #{xcode_path} for all build steps"

        ENV["DEVELOPER_DIR"] = xcode_path + "/Contents/Developer"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fastlane-0.6.1 lib/fastlane/actions/xcode_select.rb
fastlane-0.6.0 lib/fastlane/actions/xcode_select.rb
fastlane-0.5.0 lib/fastlane/actions/xcode_select.rb
fastlane-0.4.2 lib/fastlane/actions/xcode_select.rb
fastlane-0.4.1 lib/fastlane/actions/xcode_select.rb
fastlane-0.4.0 lib/fastlane/actions/xcode_select.rb
fastlane-0.3.0 lib/fastlane/actions/xcode_select.rb
fastlane-0.2.1 lib/fastlane/actions/xcode_select.rb
fastlane-0.2.0 lib/fastlane/actions/xcode_select.rb
fastlane-0.1.19 lib/fastlane/actions/xcode_select.rb
fastlane-0.1.18 lib/fastlane/actions/xcode_select.rb
fastlane-0.1.17 lib/fastlane/actions/xcode_select.rb
fastlane-0.1.16 lib/fastlane/actions/xcode_select.rb
fastlane-0.1.15 lib/fastlane/actions/xcode_select.rb