Closed behzod-rajabov closed 1 week ago
Hi @behzod-rajabov, can you please check if your git configuration is set to force signatures for annotated tags? You can check that by running git config --get tag.forcesignannotated
- if that returns true
, you can disable it using git config --global tag.forcesignannotated false
.
This setting requires annotated tags to be signed with GPG, and the tags for this repository are not signed.
Hi @mattcreaser This setting is returning me the "false". But the problem is still there.
@behzod-rajabov I was unable to reproduce this, so it seems like a local issue with your SPM cache.
I'd advice you to check if either of the following fixes the issue:
rm -rf ~/Library/Caches/org.swift.swiftpm
rm -rf ~/Library/org.swift.swiftpm
Hi @ruisebas I have done all the options you gave, but unfortunately the problem still occurs.
In the screenshot you shared, you can see it explicitly says it's attempting to fetch a cached version.
Maybe try removing the package from the list of Recenty Used?
@ruisebas Yes I tried all possible methods. I tried adding it to other projects as well. But the problem is the same.
I wiped everything on my end as well to be sure, but I still can't reproduce it.
Are you perhaps using SourceTree? There's a recent bug that causes issues with SPM because it adds the following to the ~/.gitconfig
file:
[safe]
bareRepository = explicit
So if you have those entries in your config file, please remove them and try again.
If that still doesn't work (or you don't have those entries), one last thing you could try is to run the proper swift package
commands to clean up:
swift package purge-cache
swift package reset
Also make sure your Xcode is closed when you run them.
Yes @ruisebas , the problem is with SourceTree. Thanks for your help 👍🏼
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I am getting this problem when I add a Package to a Project via SPM. How can I fix this?
Steps To Reproduce
Expected behavior
Problem adding via SPM
Swift Liveness Version
1.3.3
Xcode version
15
Relevant log output
No response
Is this a regression?
No
Regression additional context
No response
OS Version
macOS 14.6.1
Device
iPhone 15 Pro Max
Specific to simulators
No response
Additional context
No response