Sha256: c692f31ded280a45d22e15b9120de4cd4f5d8b62a678d9016645b33a2445ca98

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

require_relative 'module'

module Gym
  class Xcode
    class << self
      def xcode_path
        Helper.xcode_path
      end

      def xcode_version
        Helper.xcode_version
      end

      # Below Xcode 7 (which offers a new nice API to sign the app)
      def pre_7?
        UI.user_error!("Unable to locate Xcode. Please make sure to have Xcode installed on your machine") if xcode_version.nil?
        v = xcode_version
        is_pre = v.split('.')[0].to_i < 7
        is_pre
      end

      def legacy_api_deprecated?
        FastlaneCore::Helper.xcode_at_least?('8.3')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 gym/lib/gym/xcode.rb
fastlane_hotfix-2.165.0 gym/lib/gym/xcode.rb
fastlane_hotfix-2.187.0 gym/lib/gym/xcode.rb