After removing derived data from my Mac for an unrelated issue, my SPM stopped building one of the private package dependencies. Always showing me the same error.
Failed downloading '.zip' which is required by binary target: badResponseStatusCode(401)
The .zip is hosted in a GitLab package registry, and when I copy the link I can download it normally from a browser.
So far I've tried:
- Clearing SPM cache
- Removing derived data
- reseting packages
- Restarting mac
- updating mac version
- updating xcode
- removing and installing xcode again
- changing the SSH key
- removing and adding the library again and again
- downgrading library
- Cleared gitlab from keychain and set it up again
- Checked access to that GitLab repo, all good there
This issue is only present on my machine and not on any of my coworkers.