---
title: "Discussion on \"Xcode 13.3 supports SPM binary dependency in private GitHub release\" | Hashnode"
description: "Discussion on \"Xcode 13.3 supports SPM binary dependency in private GitHub release\". Learn to distribute binary frameworks (xcframework) with Swift Package Manager (SPM) even if those binaries require authentication. Netrc to the rescue!"
url: "https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Xcode 13.3 supports SPM binary dependency in private GitHub release](https://blog.eidinger.info/xcode-133-supports-spm-binary-dependency-in-private-github-release?utm_source=hashnode&utm_medium=feed)

Learn to distribute binary frameworks (xcframework) with Swift Package Manager (SPM) even if those binaries require authentication. Netrc to the rescue!

Mar 8, 2022 · 3 min read · blog.eidinger.info  
Read the article

-   [#xcode](https://hashnode.com/tag/xcode)
-   [#swift](https://hashnode.com/tag/swift)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Marco Eidinger](https://hashnode.com/@MarcoEidinger)

@MarcoEidinger

  
[View profile](https://hashnode.com/@MarcoEidinger)

#Swift #iOS SDK architect 🇺🇸 🇩🇪

I am a Software Engineer working on open source and enterprise mobile SDKs for iOS and MacOS developers written in Swift. From 🇩🇪 and happily living in 🇺🇸

## Responses 3

Markdown supported · ⌘↵ to post

[Edwin](https://hashnode.com/@edwinps)

[Apr 2, 2025](https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298/comment/67ecf6cc828686384d93d15f)

Hello nice article, I've tried everything and followed all the steps but it keeps giving me 404, I've tried everything and followed all the steps but it keeps giving me 404

[Michael McGuire](https://hashnode.com/@monocularvision)

[Jul 26, 2023](https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298/comment/64c16514cf42513b76e8fb41)

One note: in your section that gives the items to put in the keychain you list the "Keychain Item Name" as api.github.com. It needs to to have a preceding "["](https://"/)

[Daniil Zadorozhnyy](https://hashnode.com/@DanZadorozhnyy)

[Jun 30, 2023](https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298/comment/649eaf302a0936ab01ee244f)

Hi, [Marco Eidinger](https://hashnode.com/@MarcoEidinger)! Great article which helped me a lot to get it finally working. However, I currently have struggles making it work with Xcode cloud. Even though I create a temporary keychain and store the access token through `security` api, I always get an error "Could not resolve package dependencies" with 404 for each of binary targets assets. Do you have some advice on how to overcome this issue?

[Marco Eidinger](https://hashnode.com/@MarcoEidinger)

[Jul 3, 2023](https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298/comment/649eaf302a0936ab01ee244f#reply-64a24717da8bacd49092f52d)

Hi [Daniil Zadorozhnyy](https://hashnode.com/@DanZadorozhnyy), use a custom build script to create the netrc file for Xcode Cloud.

[blog.eidinger.info/using-swift-packages-with-auth…](https://blog.eidinger.info/using-swift-packages-with-authentication-in-xcode-cloud)

[Przemysław Szurmak](https://hashnode.com/@macszur)

[Mar 9, 2022](https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298/comment/62286f5c67104e8316e40457)

hey [Marco Eidinger](https://hashnode.com/@MarcoEidinger) great article! I remember following Swift Forum's thread a while ago. Do you know if any of these applies to GitLab private repos?

[Marco Eidinger](https://hashnode.com/@MarcoEidinger)

[Mar 10, 2022](https://hashnode.com/posts/xcode-133-supports-spm-binary-dependency-in-private-github-release/622759e033120280724e7298/comment/62286f5c67104e8316e40457#reply-6229574c33120280724ea8d3)

Hi, I neither use GitLab nor their REST API so I cannot tell you with certainty. SPM is able to add `Authorization` header as well `Accept` header with `application/octet-stream`. It should work if the GitLab REST API does not have further requirements with regards to headers.
