Is anyone able to do SPM auth with an internally h...
# touchlab-tools
y
Is anyone able to do SPM auth with an internally hosted artifactory? I have tried below config, and adding this keychain - is there anything I am missing? my
.netrc
file
Copy code
machine artifactory.myCompany.global.corp:223
  login xxx
  password xxxxx
also tried with
Copy code
machine <https://artifactory.myCompany.global.corp:223/artifactory/nst-app-maven-local>
I can download the artifact from the Android app and my local machine has access to the artifactory I can get zip locally just fine.
Copy code
curl -o myfile.zip <https://artifactory.myCompany.global.corp:223/artifactory/my-app-maven-local/com/napmultiplatform/utils/utils-kmmbridge/0.0.1/utils-kmmbridge-0.0.1.zip>
When testing netrc with curl, I get auth required, but not sure if this right way to test the auth via netrc
Copy code
curl -n -v <https://artifactory.myCompany.global.corp:223/artifactory/my-app-maven-local/>

"errors" : [ {
    "status" : 401,
    "message" : "Authentication is required"
  } ]
m
is the issue that its not pulling down in your ios build? At a glance it looks like everything is setup right
Maybe dropping the port number in the netrc might be the fix? so
machine artifactory.mycompany.global.corp
y
amazing, yes removing the port number made it work. Now able to pull down the artifact in Xcode. Thank you!
m
No problem! I've found netrc files to be quite picky, glad it worked!
thank you color 1