Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift package manager: artifact of binary target failed download: invalid status code 404

I have created a Swift package manager using a private repo. The xcframework zip file is located in this private repo. The swift package manager set up is sitting in a public repo. When I try to integrate this SPM ( swift package manager ) in a sample app, I see below error. Please can anyone suggest what can i do to fix this.

enter image description here

What I have already tried :

I tried to use a SSH authentication instead of https in Xcode preferences accounts, when I do that it fails on first step itself while cloning the public SPM repo.

Error : enter image description here

like image 709
Max Avatar asked Dec 14 '20 16:12

Max


1 Answers

A proper solution to this issue is coming in Swift release 5.4 The solution is similar to that used in Carthage with a NetRC file. This pull request details how the solution works in Swift 5.4

like image 85
Brett Avatar answered Nov 19 '22 10:11

Brett