8

I changed my app deployment version from iOS 13 to iOS 14 and I am getting an error building the app.

enter image description here

It keeps talking about no credentials provided although all these packages are public. Also I have github credentials set up and use them all the time.

I have tried removing github account, changing ssh -> http, but nothing seems to help.

Same issue happens when I try to add a new public package using Swift Package Manager

enter image description here

Any suggestions?

Markon
  • 741
  • 8
  • 23

2 Answers2

5

I had a similar issue, the error I was receiving was:

xcodebuild: error: Could not resolve package dependencies:
Authentication failed because the credentials were missing.
artifact not found for target 'AddonManager'.

The solution was to generate my SSH key using RSA instead of Ed25519, it seems like Xcode couldn't read my SSH key in the Ed25519 format.

I re-generated my SSH using the legacy RSA algorithm (as noted in the github docs) and added it to my local machine, this fixed the error on the next build.

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

Anil
  • 21,730
  • 9
  • 73
  • 100
4

Check your git config file first write your terminal: git config --global --edit

and it is supposed to be there "https://github.com/: rather than url.git@github.com.

roadRunner
  • 173
  • 1
  • 23