6

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

aheze
  • 24,434
  • 8
  • 68
  • 125
Max
  • 5,380
  • 6
  • 42
  • 66
  • I managed to fix this by adding the ssh key to my GitHub account which allowed to access the private repos without any issues. – Max Dec 29 '20 at 17:12
  • Can we use that with binaryTarget? (I tried unsuccessfully) – Ricardo Jun 17 '21 at 16:54

1 Answers1

3

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

Brett
  • 769
  • 6
  • 16