         if let targetProxyReference = targetProxyReference {
             dictionary["targetProxy"] = .string(CommentedString(targetProxyReference.value, comment: "PBXContainerItemProxy"))
         }
+        if let productReference = productReference {
+            dictionary["productRef"] = .string(CommentedString(productReference.value, comment: product?.productName))
+        }
         return (key: CommentedString(reference,
                                      comment: "PBXTargetDependency"),
                 value: .dictionary(dictionary))

    ///   - targetProxy: Target proxy.
    public init(name: String? = nil,
                target: PBXTarget? = nil,
                targetProxy: PBXContainerItemProxy? = nil) {
        self.name = name
        targetReference = target?.reference
        targetProxyReference = targetProxy?.reference
        super.init()
    }


        }
    }

    /// Product reference.
    var productReference: PBXObjectReference?

    /// Product.
    public var product: XCSwiftPackageProductDependency? {
        get {
            return productReference?.getObject()
        }
        set {
            productReference = newValue?.reference
        }
    }

    // MARK: - Init

    /// Initializes the target dependency with dependencies as objects.
