AWS CodeArtifact with Swift - Unable to add a Package after pushed to CodeArtifact Repository

0

I have an AWS CodeArtifact repository for Swift packages created successfully and pushed a package into the repo.

But I am unable to add the package to my Swift Application, I followed the tutorial on: https://aws.amazon.com/blogs/aws/new-add-your-swift-packages-to-aws-codeartifact/ and https://docs.aws.amazon.com/codeartifact/latest/ug/swift-publish-consume.html

Enter image description here

First Issue:

When I tried adding the dependency to the targets section and saving, XCode brings the Error: Failed fetching releases from registry: Invalid registry response status "401", expected "200"

Enter image description here

Second Issue:

I tried to add it via XCode > Package Dependencies > Add Package but that kept bring up Error: The source control operation failed because the specified URL cannot be used

Enter image description here

Third Issue:

I also tried to use the command swift package resolve as specified by the tutorial but that brings up an error on the terminal as well: Error: Unable to override package "MyPackage" because its identity "samplescopebyod.sampleswiftrepobyod" doesn't match override's identity (directory name) "mypackage"

Enter image description here

Anyone have experience with this?

Matt
gefragt vor 2 Monaten149 Aufrufe
1 Antwort
0

Hi, did you take a look at the troubleshooting page here: https://docs.aws.amazon.com/codeartifact/latest/ug/swift-troubleshooting.html ?

profile pictureAWS
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen