class Pod::Installer::BaseInstallHooksContext::UmbrellaTargetDescription

Pure data class which describes an umbrella target.

Attributes

cocoapods_target_label[R]

@return [String] The label for the target.

platform_deployment_target[R]

@return [String] The deployment target.

platform_name[R]

@return [Symbol] The platform (either `:ios`, `:watchos`, `:tvos`, or `:osx`).

specs[R]

@return [Array<Specification>] The list of the

specifications of the target.
user_project[R]

@return [Xcodeproj::Project] The user project into which this target

is integrated.
user_targets[R]

@return [Array<PBXNativeTarget>]

The list of user targets integrated by this umbrella target.

Public Class Methods

new(user_project, user_targets, specs, platform_name, platform_deployment_target, cocoapods_target_label) click to toggle source

Initialize a new instance

@param [Xcodeproj::Project] user_project see user_project @param [Array<PBXNativeTarget>] user_targets see user_targets @param [Array<Specification>] specs see specs @param [Symbol] platform_name see platform_name @param [String] platform_deployment_target see platform_deployment_target @param [String] cocoapods_target_label see cocoapods_target_label

# File lib/cocoapods/installer/base_install_hooks_context.rb, line 106
def initialize(user_project, user_targets, specs, platform_name, platform_deployment_target, cocoapods_target_label)
  @user_project = user_project
  @user_targets = user_targets
  @specs = specs
  @platform_name = platform_name
  @platform_deployment_target = platform_deployment_target
  @cocoapods_target_label = cocoapods_target_label
end

Public Instance Methods

user_project_path() click to toggle source

@return [String] The path of the user project

integrated by this target.
# File lib/cocoapods/installer/base_install_hooks_context.rb, line 118
def user_project_path
  user_project.path if user_project
end
user_target_uuids() click to toggle source

@return [Array<String>] The list of the UUIDs of the

user targets integrated by this umbrella
target.  They can be used to find the
targets opening the project They can be used
to find the targets opening the project with
Xcodeproj.
# File lib/cocoapods/installer/base_install_hooks_context.rb, line 129
def user_target_uuids
  user_targets.map(&:uuid)
end