---
title: "Adding dependencies to binary Swift packages"
url: https://daily.dev/posts/adding-dependencies-to-binary-swift-packages-8vcouhsjd
source_url: https://danielsaidi.com/blog/2025/05/02/adding-dependencies-to-binary-swift-packages
type: article
source: "Daniel Saidi"
published: 2026-07-05T07:14:10.636Z
updated: 2026-07-05T07:17:12.495Z
tags: ["swift"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding dependencies to binary Swift packages

**[Daniel Saidi](https://daily.dev/sources/danielsaidi)** · 8 min read · 0 upvotes · 0 comments

## Summary

Binary Swift Package targets don't support a `dependencies` argument, making it hard to manage dependencies for closed-source SDKs distributed as XCFrameworks. The workaround is to add a second, regular Swift Package target alongside the binary target, declare all dependencies there, and include both targets in the library product. This lets the binary target access dependencies at runtime. The post also covers the private source repo setup, Xcode project requirements, and a caveat: open-source dependencies get statically linked into the framework, potentially tripling its size.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://danielsaidi.com/blog/2025/05/02/adding-dependencies-to-binary-swift-packages>

---

Tags: [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/adding-dependencies-to-binary-swift-packages-8vcouhsjd)
