class Pod::Xcode::FrameworkPaths

Attributes

bcsymbolmap_paths[R]

@return [Array<String>, Nil] the bcsymbolmap files path array, if one exists

dsym_path[R]

@return [String, Nil] the dSYM path, if one exists

source_path[R]

@return [String] the path to the .framework

Public Class Methods

from_path(path) click to toggle source

@param [Pathname] path the path to the `.framework` bundle

@return [FrameworkPaths] the path of the framework with dsym & bcsymbolmap paths, if found

# File lib/cocoapods/xcode/framework_paths.rb, line 44
def self.from_path(path)
  dsym_name = "#{path.basename}.dSYM"
  dsym_path = Pathname.new("#{path.dirname}/#{dsym_name}")
  dsym_path = nil unless dsym_path.exist?
  bcsymbolmap_paths = Pathname.glob(path.dirname, '*.bcsymbolmap')

  FrameworkPaths.new(path, dsym_path, bcsymbolmap_paths)
end
new(source_path, dsym_path = nil, bcsymbolmap_paths = nil) click to toggle source
# File lib/cocoapods/xcode/framework_paths.rb, line 16
def initialize(source_path, dsym_path = nil, bcsymbolmap_paths = nil)
  @source_path = source_path
  @dsym_path = dsym_path
  @bcsymbolmap_paths = bcsymbolmap_paths
end

Public Instance Methods

==(other) click to toggle source
# File lib/cocoapods/xcode/framework_paths.rb, line 22
def ==(other)
  if other.class == self.class
    other.source_path == @source_path && other.dsym_path == @dsym_path && other.bcsymbolmap_paths == @bcsymbolmap_paths
  else
    false
  end
end
Also aliased as: eql?
all_paths() click to toggle source
# File lib/cocoapods/xcode/framework_paths.rb, line 36
def all_paths
  [source_path, dsym_path, bcsymbolmap_paths].flatten.compact
end
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/cocoapods/xcode/framework_paths.rb, line 32
def hash
  [source_path, dsym_path, bcsymbolmap_paths].hash
end