Class: Xcodeproj::XcodebuildHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/xcodeproj/xcodebuild_helper.rb

Overview

Helper class which returns information from xcodebuild.

Instance Method Summary collapse

Constructor Details

#initializeXcodebuildHelper

Returns a new instance of XcodebuildHelper.



5
6
7
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 5

def initialize
  @needs_to_parse_sdks = true
end

Instance Method Details

#last_ios_sdkString

Returns The version of the last iOS sdk.

Returns:

  • (String)

    The version of the last iOS sdk.



11
12
13
14
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 11

def last_ios_sdk
  parse_sdks_if_needed
  versions_by_sdk[:ios].sort.last
end

#last_osx_sdkString

Returns The version of the last OS X sdk.

Returns:

  • (String)

    The version of the last OS X sdk.



18
19
20
21
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 18

def last_osx_sdk
  parse_sdks_if_needed
  versions_by_sdk[:osx].sort.last
end

#last_tvos_sdkString

Returns The version of the last tvOS sdk.

Returns:

  • (String)

    The version of the last tvOS sdk.



25
26
27
28
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 25

def last_tvos_sdk
  parse_sdks_if_needed
  versions_by_sdk[:tvos].sort.last
end

#last_visionos_sdkString

Returns The version of the last visionOS sdk.

Returns:

  • (String)

    The version of the last visionOS sdk.



32
33
34
35
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 32

def last_visionos_sdk
  parse_sdks_if_needed
  versions_by_sdk[:visionos].sort.last
end

#last_watchos_sdkString

Returns The version of the last watchOS sdk.

Returns:

  • (String)

    The version of the last watchOS sdk.



39
40
41
42
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 39

def last_watchos_sdk
  parse_sdks_if_needed
  versions_by_sdk[:watchos].sort.last
end