Class: Gym::Xcode

Inherits:
Object
  • Object
show all
Defined in:
gym/lib/gym/xcode.rb

Class Method Summary collapse

Class Method Details

.legacy_api_deprecated?Boolean

Returns:



22
23
24
# File 'gym/lib/gym/xcode.rb', line 22

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

.pre_7?Boolean

Below Xcode 7 (which offers a new nice API to sign the app)

Returns:



15
16
17
18
19
20
# File 'gym/lib/gym/xcode.rb', line 15

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

.xcode_pathObject



6
7
8
# File 'gym/lib/gym/xcode.rb', line 6

def xcode_path
  Helper.xcode_path
end

.xcode_versionObject



10
11
12
# File 'gym/lib/gym/xcode.rb', line 10

def xcode_version
  Helper.xcode_version
end