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
질문됨 2달 전150회 조회
1개 답변
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
답변함 2달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠