class Xcodeproj::Project::Object::PBXReferenceProxy

Apparently a proxy for a reference object which might belong another project contained in the same workspace of the project document.

This class is used for referencing the products of another project.

Public Instance Methods

ascii_plist_annotation() click to toggle source
# File lib/xcodeproj/project/object/reference_proxy.rb, line 52
def ascii_plist_annotation
  " #{name || path && File.basename(path)} "
end
build_files() click to toggle source

@return [Array<PBXBuildFile>] the build files associated with the

current reference proxy.
# File lib/xcodeproj/project/object/reference_proxy.rb, line 68
def build_files
  referrers.grep(PBXBuildFile)
end
display_name() click to toggle source

@return [String] A name suitable for displaying the object to the

user.
# File lib/xcodeproj/project/object/reference_proxy.rb, line 59
def display_name
  return name if name
  return path if path
  super
end
proxy?() click to toggle source

Checks whether the reference is a proxy.

@return [Bool] always true for this ISA.

# File lib/xcodeproj/project/object/reference_proxy.rb, line 46
def proxy?
  true
end
remove_from_project() click to toggle source

In addition to removing the reference proxy, this will also remove any items related to this reference.

@see AbstractObject#remove_from_project

@return [void]

# File lib/xcodeproj/project/object/reference_proxy.rb, line 79
def remove_from_project
  build_files.each(&:remove_from_project)
  super
end