'Package resolution failed. Couldn't get the list of tags
Can't add new dependency via SPM and always see this error
fatal: bad numeric config value 'null' for 'tag.forcesignannotated': invalid unit
- Clean derived data, reset package caches, resolve package version, restart Xcode - not work.
- Xcode 12.5.1 and Xcode 13 - not work (this error above)
- Xcode 12.4 - kill Xcode and close it
But I can add dependency via cocoapods.
Please help
Solution 1:[1]
I fixed that due to next command:
git config --global tag.forcesignannotated false
Solution 2:[2]
before starting to load the SPM change the version to minor and you are good to go.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Taras |
Solution 2 | tara tandel |