Module: Pod::SPM::Object::PackageReferenceMixin

Included in:
XCLocalSwiftPackageReference, XCRemoteSwiftPackageReference
Defined in:
lib/cocoapods-spm/def/xcodeproj.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/cocoapods-spm/def/xcodeproj.rb', line 7

def name
  @name
end

Instance Method Details

#create_pkg_product_dependency_ref(product) ⇒ Object



9
10
11
12
13
14
# File 'lib/cocoapods-spm/def/xcodeproj.rb', line 9

def create_pkg_product_dependency_ref(product)
  ref = project.new(BaseObject::XCSwiftPackageProductDependency)
  ref.package = self
  ref.product_name = product
  ref
end

#create_target_dependency_ref(product) ⇒ Object



16
17
18
19
20
21
# File 'lib/cocoapods-spm/def/xcodeproj.rb', line 16

def create_target_dependency_ref(product)
  ref = project.new(BaseObject::PBXTargetDependency)
  ref.name = product
  ref.product_ref = create_pkg_product_dependency_ref(product)
  ref
end