简体   繁体   中英

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.

在此处输入图像描述

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: 在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM