# \#binary-framework

**URL:** https://forums.swift.org/tag/binary-framework/231.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Indexing binary Swift frameworks for IDE navigation](https://forums.swift.org/t/indexing-binary-swift-frameworks-for-ide-navigation/89761)

<div class="topic-metadata">

**Author:** [@gildor](https://forums.swift.org/u/gildor)\
**Replies:** 3\
**Last updated:** [October 10, 2026, 4:11pm UTC](https://forums.swift.org/t/indexing-binary-swift-frameworks-for-ide-navigation/89761 "2026-10-10T16:11:33Z")

</div>

Binary Swift frameworks (xcframeworks shipping a .swiftinterface) are invisible to index-based navigation: Xcode's Open Quickly and Find \> Definitions can't find their types, and sourcekit-lsp works around the same gap f…

---

## [Adding Sendable conformance types from other libraries](https://forums.swift.org/t/adding-sendable-conformance-types-from-other-libraries/87209)

<div class="topic-metadata">

**Author:** [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Replies:** 10\
**Last updated:** [June 10, 2026, 1:22pm UTC](https://forums.swift.org/t/adding-sendable-conformance-types-from-other-libraries/87209 "2026-06-10T13:22:50Z")

</div>

While migrating to Swift 6 I am facing warnings regarding Sendable conformance around types like UserDefaults, KeyPath. While I can use @unchecked Sendable to silence these warnings, but I lose the compiler Sendable chec…

---

## [Swift Runtime](https://forums.swift.org/t/swift-runtime/82856)

<div class="topic-metadata">

**Author:** [@realmtai](https://forums.swift.org/u/realmtai)\
**Replies:** 11\
**Last updated:** [November 8, 2025, 6:08pm UTC](https://forums.swift.org/t/swift-runtime/82856 "2025-11-08T18:08:42Z")

</div>

Hello folks, It's really amazing to see Swift running on Android OS! I want to learn more about the swift binary and runtime. How does one go from swift source code -\> binary and load binary -\> display content in a te…

---

## [How to generate DocC documentation for a binaryTarget in SwiftPM](https://forums.swift.org/t/how-to-generate-docc-documentation-for-a-binarytarget-in-swiftpm/64002)

<div class="topic-metadata">

**Author:** [@Dev1an](https://forums.swift.org/u/Dev1an)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 4:13pm UTC](https://forums.swift.org/t/how-to-generate-docc-documentation-for-a-binarytarget-in-swiftpm/64002 "2025-10-04T16:13:24Z")

</div>

If you are creating an SPM package with binary targets and you execute: swift package generate-documentation I get an empty doccarchive as a result. How can we enable docc docs for binary targets? Do we need to compile …

---

## [Using a tiny multiplatform binary target to hide API keys and secrets](https://forums.swift.org/t/using-a-tiny-multiplatform-binary-target-to-hide-api-keys-and-secrets/80592)

<div class="topic-metadata">

**Author:** [@shawnthroop](https://forums.swift.org/u/shawnthroop)\
**Replies:** 1\
**Last updated:** [June 21, 2025, 5:35pm UTC](https://forums.swift.org/t/using-a-tiny-multiplatform-binary-target-to-hide-api-keys-and-secrets/80592 "2025-06-21T17:35:05Z")

</div>

I’ve been thinking about how best to best store basic API keys and a private key for signing requests I make to a Linode VPS for a small apns database/server app. One idea is to use On-Demand resources which get loaded a…

---

## [Working around limitations in Swift Package Manager for binary distribution](https://forums.swift.org/t/working-around-limitations-in-swift-package-manager-for-binary-distribution/77187)

<div class="topic-metadata">

**Author:** [@tonyarnold](https://forums.swift.org/u/tonyarnold)\
**Replies:** 5\
**Last updated:** [January 21, 2025, 7:11am UTC](https://forums.swift.org/t/working-around-limitations-in-swift-package-manager-for-binary-distribution/77187 "2025-01-21T07:11:21Z")

</div>

With the impending end of CocoaPods in sight, I'm once again assessing how SwiftPM can meet our needs to distribute the XCFramework SDK that we ship with Reveal. Out of the box, SwiftPM isn't up to the task — we strongl…

---

## [Creating a Mac/Linux multiplatform Swift package wrapping a static C library](https://forums.swift.org/t/creating-a-mac-linux-multiplatform-swift-package-wrapping-a-static-c-library/66083)

<div class="topic-metadata">

**Author:** [@RogerTheShrubber](https://forums.swift.org/u/RogerTheShrubber)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 12:20am UTC](https://forums.swift.org/t/creating-a-mac-linux-multiplatform-swift-package-wrapping-a-static-c-library/66083 "2025-01-09T00:20:36Z")

</div>

I'm attempting to create a Swift package that wraps the librclone library, but includes binary files for both Linux and Mac, in both arm64 and amd64 architectures. (Might include iOS at a later date.) I'm able to build …

---

## [How on earth can I create a .framework from a Swift package?](https://forums.swift.org/t/how-on-earth-can-i-create-a-framework-from-a-swift-package/76797)

<div class="topic-metadata">

**Author:** [@NSExceptional](https://forums.swift.org/u/NSExceptional)\
**Replies:** 5\
**Last updated:** [December 26, 2024, 6:50am UTC](https://forums.swift.org/t/how-on-earth-can-i-create-a-framework-from-a-swift-package/76797 "2024-12-26T06:50:10Z")

</div>

According to the responses on this post, Package.swift is no longer intended to be "convertible" to an Xcode project. This eliminates the ability to generate Xcode-specifc products such as .frameworks, since SPM doesn't …

---

## ["Missing required module" for C target of SPM dependency within .framework](https://forums.swift.org/t/missing-required-module-for-c-target-of-spm-dependency-within-framework/76851)

<div class="topic-metadata">

**Author:** [@NSExceptional](https://forums.swift.org/u/NSExceptional)\
**Replies:** 0\
**Last updated:** [December 25, 2024, 10:07pm UTC](https://forums.swift.org/t/missing-required-module-for-c-target-of-spm-dependency-within-framework/76851 "2024-12-25T22:07:56Z")

</div>

If you've seen my previous post, this is somewhat related in that it's about the same project, but my previous post is still unanswered. You don't need to read it if you haven't; I've moved on from my previous approach f…

---

## [Concatenate many xcframeworks into one xcframework](https://forums.swift.org/t/concatenate-many-xcframeworks-into-one-xcframework/57631)

<div class="topic-metadata">

**Author:** [@antranapp](https://forums.swift.org/u/antranapp)\
**Replies:** 6\
**Last updated:** [December 13, 2024, 8:10am UTC](https://forums.swift.org/t/concatenate-many-xcframeworks-into-one-xcframework/57631 "2024-12-13T08:10:22Z")

</div>

We modularise our project into 20+ swift packages which split into many layers (Core -\> Kits -\> Features -\> Integration) We have to build a SDK out of it to deliver to our clients. Currently, we need to distribute 20+ x…

---

## [Swift Package and xcframework target for C library: where to include the header?](https://forums.swift.org/t/swift-package-and-xcframework-target-for-c-library-where-to-include-the-header/51163)

<div class="topic-metadata">

**Author:** [@olilarkin](https://forums.swift.org/u/olilarkin)\
**Replies:** 12\
**Last updated:** [October 15, 2024, 11:35pm UTC](https://forums.swift.org/t/swift-package-and-xcframework-target-for-c-library-where-to-include-the-header/51163 "2024-10-15T23:35:55Z")

</div>

I am refactoring a project to use SPM. Previously in the “bridging header” I had a #include \<abc/abc.h\> which exposed the C static library in abc.xcframework to swift and worked very well. Now I have the abc.xcframewo…

---

## [Duplicate symbols - runtime crash with local SwiftPM package dependencies](https://forums.swift.org/t/duplicate-symbols-runtime-crash-with-local-swiftpm-package-dependencies/73991)

<div class="topic-metadata">

**Author:** [@pkaminski](https://forums.swift.org/u/pkaminski)\
**Replies:** 4\
**Last updated:** [August 22, 2024, 6:27pm UTC](https://forums.swift.org/t/duplicate-symbols-runtime-crash-with-local-swiftpm-package-dependencies/73991 "2024-08-22T18:27:26Z")

</div>

I am creating local swift packages to modularize generated GraphQL binding types for my project, but I'm running into a duplicate symbols runtime warning objc\[15506\]: Class CommonGraphQL19MyMutation is implemented in b…

---

## [Error 'unsupported Swift architecture' in generated -Swift.h file](https://forums.swift.org/t/error-unsupported-swift-architecture-in-generated-swift-h-file/66901)

<div class="topic-metadata">

**Author:** [@asevko](https://forums.swift.org/u/asevko)\
**Replies:** 1\
**Last updated:** [July 17, 2024, 4:26am UTC](https://forums.swift.org/t/error-unsupported-swift-architecture-in-generated-swift-h-file/66901 "2024-07-17T04:26:55Z")

</div>

We are developing a bunch of xcframeworks, that are using some other xcframeworks, that are distributed via cocoapods. Problem After switching to xcode 14 build system, generated headers for our frameworks started looki…

---

## [Debugging an XCFramework - module not available for import](https://forums.swift.org/t/debugging-an-xcframework-module-not-available-for-import/62986)

<div class="topic-metadata">

**Author:** [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Replies:** 5\
**Last updated:** [June 29, 2024, 9:00am UTC](https://forums.swift.org/t/debugging-an-xcframework-module-not-available-for-import/62986 "2024-06-29T09:00:03Z")

</div>

I'm creating a binary framework (using xcodebuild -create-xcframework) and referencing it locally, with the binary framework having a static library and a modulemap created for it. In this particular case, I'm trying to …

---

## [SwiftPM support for binary packages which depends on another open source package](https://forums.swift.org/t/swiftpm-support-for-binary-packages-which-depends-on-another-open-source-package/57482)

<div class="topic-metadata">

**Author:** [@raosanat](https://forums.swift.org/u/raosanat)\
**Replies:** 6\
**Last updated:** [May 2, 2024, 5:22pm UTC](https://forums.swift.org/t/swiftpm-support-for-binary-packages-which-depends-on-another-open-source-package/57482 "2024-05-02T17:22:52Z")

</div>

Hi, We are trying to distribute our binary framework with Swift PM. Swift PM does support distributing binary packages but our scenario is a bit different. We have 3 different packages Package A =\> Swift based open s…

---

## [Is it allowed in iOS - Swift Dynamic Framework - Contains Multiple Static Library](https://forums.swift.org/t/is-it-allowed-in-ios-swift-dynamic-framework-contains-multiple-static-library/70732)

<div class="topic-metadata">

**Author:** [@vishnuthoughtfocus](https://forums.swift.org/u/vishnuthoughtfocus)\
**Replies:** 2\
**Last updated:** [March 18, 2024, 9:29am UTC](https://forums.swift.org/t/is-it-allowed-in-ios-swift-dynamic-framework-contains-multiple-static-library/70732 "2024-03-18T09:29:01Z")

</div>

\-1 I have developed a framework for my customer, thats a swift dyanmic framework. For code modularization i have divided this framework features in to multiple static libraries as shown in the diagram below. Currently w…

---

## [SwiftPM - Binary target with sub-dependencies](https://forums.swift.org/t/swiftpm-binary-target-with-sub-dependencies/40197)

<div class="topic-metadata">

**Author:** [@bielikb](https://forums.swift.org/u/bielikb)\
**Replies:** 27\
**Last updated:** [January 21, 2024, 2:09pm UTC](https://forums.swift.org/t/swiftpm-binary-target-with-sub-dependencies/40197 "2024-01-21T14:09:21Z")

</div>

Hi, Xcode 12.0/Swift 5.3 toolchain introduced support for binary targets in Swift Package Manager. While the feature works perfectly for single binary targets, is there a possibility to declare binary subdependencies f…

---

## [Omitting .private.swiftinterface file when building binary framework](https://forums.swift.org/t/omitting-private-swiftinterface-file-when-building-binary-framework/69110)

<div class="topic-metadata">

**Author:** [@rm\_tp](https://forums.swift.org/u/rm_tp)\
**Replies:** 3\
**Last updated:** [January 2, 2024, 4:39pm UTC](https://forums.swift.org/t/omitting-private-swiftinterface-file-when-building-binary-framework/69110 "2024-01-02T16:39:08Z")

</div>

According to the Swift reference guide for underscored attributes on @\_spi, the .private.swiftinterface file should be generated by adding the -emit-private-module-interface-path compiler option. The issue I am facing i…

---

## [SDK as XCFramework](https://forums.swift.org/t/sdk-as-xcframework/68553)

<div class="topic-metadata">

**Author:** [@ser-0xff](https://forums.swift.org/u/ser-0xff)\
**Replies:** 0\
**Last updated:** [November 20, 2023, 4:53pm UTC](https://forums.swift.org/t/sdk-as-xcframework/68553 "2023-11-20T16:53:35Z")

</div>

Hi everybody, tried to find similar question, there are some related but no solution thought… We are building a product for macOS/Linux with Swift. Users are supposed to be able to extend functionality with own impleme…

---

## [Merging two Framework-Swift.h headers](https://forums.swift.org/t/merging-two-framework-swift-h-headers/65638)

<div class="topic-metadata">

**Author:** [@LucianoPAlmeida](https://forums.swift.org/u/LucianoPAlmeida)\
**Replies:** 4\
**Last updated:** [July 18, 2023, 2:52pm UTC](https://forums.swift.org/t/merging-two-framework-swift-h-headers/65638 "2023-07-18T14:52:51Z")

</div>

Hi, I'm currently trying to take two simulator MyFramework.framework (arm64 and x86) and merge then together into a fat framework to embed into a xcframework. The current steps are simple lipo the binaries and copy the …

---

## [Is it possible to verify if an XCFramework was built for distribution?](https://forums.swift.org/t/is-it-possible-to-verify-if-an-xcframework-was-built-for-distribution/67910)

<div class="topic-metadata">

**Author:** [@hisaac](https://forums.swift.org/u/hisaac)\
**Replies:** 0\
**Last updated:** [October 17, 2023, 6:59pm UTC](https://forums.swift.org/t/is-it-possible-to-verify-if-an-xcframework-was-built-for-distribution/67910 "2023-10-17T18:59:56Z")

</div>

Is it possible, given just an XCFramework and not having access to the code or build system used to create said XCFramework, to determine if it was built with the BUILD\_LIBRARY\_FOR\_DISTRIBUTION flag enabled? Is the pres…

---

## [Dynamic framework with embedded static frameworks within an XCFramework](https://forums.swift.org/t/dynamic-framework-with-embedded-static-frameworks-within-an-xcframework/44416)

<div class="topic-metadata">

**Author:** [@adamyanalunas](https://forums.swift.org/u/adamyanalunas)\
**Replies:** 4\
**Last updated:** [October 2, 2023, 7:17am UTC](https://forums.swift.org/t/dynamic-framework-with-embedded-static-frameworks-within-an-xcframework/44416 "2023-10-02T07:17:19Z")

</div>

Hi there! I’m new to creating and distributing binary frameworks so thanks in advance for your patience if I’ve overlooked known solutions. My goal is to distribute a single Swift XCFramework to customers that requires …

---

## [Debug Compiler Directive in Swift Package causes runtime crash](https://forums.swift.org/t/debug-compiler-directive-in-swift-package-causes-runtime-crash/66701)

<div class="topic-metadata">

**Author:** [@mrtnlst](https://forums.swift.org/u/mrtnlst)\
**Replies:** 0\
**Last updated:** [August 10, 2023, 2:46pm UTC](https://forums.swift.org/t/debug-compiler-directive-in-swift-package-causes-runtime-crash/66701 "2023-08-10T14:46:11Z")

</div>

Summary I'm facing a crash when using #if DEBUG directives in a Swift Package that is linked (but not embedded) to a release build of a static library. If the static library and the Package's library target are then embe…

---

## [How can I create a .framework file from a swift package?](https://forums.swift.org/t/how-can-i-create-a-framework-file-from-a-swift-package/65405)

<div class="topic-metadata">

**Author:** [@nonlin](https://forums.swift.org/u/nonlin)\
**Replies:** 1\
**Last updated:** [June 7, 2023, 11:11pm UTC](https://forums.swift.org/t/how-can-i-create-a-framework-file-from-a-swift-package/65405 "2023-06-07T23:11:30Z")

</div>

In this repo here UnityCoreBluetooth/Examples/UnityExample/Assets/Plugins/UnityCoreBluetooth/Plugins/iOS at c67a39211120a537addc47140281e3a9542c8321 · fuziki/UnityCoreBluetooth · GitHub They manage to make a .framework …

---

## [Binary distributable XCFrameworks with Property Wrappers Issue](https://forums.swift.org/t/binary-distributable-xcframeworks-with-property-wrappers-issue/63624)

<div class="topic-metadata">

**Author:** [@paynerc](https://forums.swift.org/u/paynerc)\
**Replies:** 7\
**Last updated:** [March 16, 2023, 6:48pm UTC](https://forums.swift.org/t/binary-distributable-xcframeworks-with-property-wrappers-issue/63624 "2023-03-16T18:48:26Z")

</div>

I’ve just run into an issue with a binary distributable XCFramework and stored properties with property wrappers. We distribute a closed source iOS XCFramework written in Swift and have been chugging along just peachy. …

---

## [SPM Binary Frameworks - "The data couldn’t be read because it isn’t in the correct format."](https://forums.swift.org/t/spm-binary-frameworks-the-data-couldn-t-be-read-because-it-isn-t-in-the-correct-format/45601)

<div class="topic-metadata">

**Author:** [@Logan\_Shire](https://forums.swift.org/u/Logan_Shire)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 10:39am UTC](https://forums.swift.org/t/spm-binary-frameworks-the-data-couldn-t-be-read-because-it-isn-t-in-the-correct-format/45601 "2023-01-20T10:39:06Z")

</div>

I'm trying to integrate the Agora SDK into my iOS app which uses SPM for all of my packages and dependencies. Unfortunately, they don't provide an SPM package - they just provide either a zip of five xcframeworks which …

---

## [How to create a swift SDK that can be maybe available through a framework?](https://forums.swift.org/t/how-to-create-a-swift-sdk-that-can-be-maybe-available-through-a-framework/62608)

<div class="topic-metadata">

**Author:** [@victorzamaro](https://forums.swift.org/u/victorzamaro)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 2:56pm UTC](https://forums.swift.org/t/how-to-create-a-swift-sdk-that-can-be-maybe-available-through-a-framework/62608 "2023-01-17T14:56:20Z")

</div>

At work we have a high modular environment. Which all dependencies of project CompanySDK are in other repositories throughout the company. Some of the dependencies are xcframeworks. I can\`t for security reasons expose t…

---

## ["No such module" when using SwiftPM binaryTarget/XCFramework on dependency](https://forums.swift.org/t/no-such-module-when-using-swiftpm-binarytarget-xcframework-on-dependency/48070)

<div class="topic-metadata">

**Author:** [@EfficientSetting](https://forums.swift.org/u/EfficientSetting)\
**Replies:** 5\
**Last updated:** [October 17, 2022, 11:37pm UTC](https://forums.swift.org/t/no-such-module-when-using-swiftpm-binarytarget-xcframework-on-dependency/48070 "2022-10-17T23:37:20Z")

</div>

My setup is as follows: iOS App (Executable) implements Library A via SPM Library A implements StaticLibrary B through .binaryTarget option Library A imports StaticLibraryB in several swift files and compiles fine on …

---

## [Why do I need to be in the root of a package to \`compute-checksum\` of a binary?](https://forums.swift.org/t/why-do-i-need-to-be-in-the-root-of-a-package-to-compute-checksum-of-a-binary/55470)

<div class="topic-metadata">

**Author:** [@mathaeus](https://forums.swift.org/u/mathaeus)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 10:14am UTC](https://forums.swift.org/t/why-do-i-need-to-be-in-the-root-of-a-package-to-compute-checksum-of-a-binary/55470 "2022-02-21T10:14:29Z")

</div>

When computing the checksum of a binary framework, the documentation states that I need to execute the respective command in the root of the package. Yet I noticed it doesn't make any difference what the content of your…

---

## [XCFramework requires to target iOS 13 for inter-framework dependencies with Objective-C compatibility (tested with Xcode 11 beta 7)](https://forums.swift.org/t/xcframework-requires-to-target-ios-13-for-inter-framework-dependencies-with-objective-c-compatibility-tested-with-xcode-11-beta-7/28539)

<div class="topic-metadata">

**Author:** [@brogrammer](https://forums.swift.org/u/brogrammer)\
**Replies:** 3\
**Last updated:** [November 5, 2019, 8:56am UTC](https://forums.swift.org/t/xcframework-requires-to-target-ios-13-for-inter-framework-dependencies-with-objective-c-compatibility-tested-with-xcode-11-beta-7/28539 "2019-11-05T08:56:51Z")

</div>

There are two issues when using XCFramework for inter-framework dependencies with Objective-C compatibility which did not cause any problems when creating normal frameworks. It seems that the XCFramework issues can only …

[Next page](https://forums.swift.org/tag/binary-framework/231.md?match_all_tags=true&page=1&tags%5B%5D=binary-framework)
