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?

asked 8 months ago245 views
1 Answer
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
answered 7 months ago
profile picture
EXPERT
reviewed 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions