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
preguntada hace 2 meses148 visualizaciones
1 Respuesta
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
respondido hace 2 meses
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas