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
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"
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
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"
Anyone have experience with this?