Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem adding via SPM #182

Closed
behzod-rajabov opened this issue Nov 10, 2024 · 9 comments
Closed

Problem adding via SPM #182

behzod-rajabov opened this issue Nov 10, 2024 · 9 comments
Labels
not-reproducible Not able to reproduce the issue pending-maintainer-response Issue is pending response from an Amplify team member question Further information is requested

Comments

@behzod-rajabov
Copy link

Describe the bug

Screenshot 2024-11-10 at 21 48 43
I am getting this problem when I add a Package to a Project via SPM. How can I fix this?

Steps To Reproduce

Problem adding via SPM

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

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify team member labels Nov 10, 2024
@mattcreaser
Copy link
Member

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.

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Nov 11, 2024
@mattcreaser mattcreaser added question Further information is requested pending-community-response Issue is pending response from the issue requestor pending-maintainer-response Issue is pending response from an Amplify team member and removed pending-maintainer-response Issue is pending response from an Amplify team member labels Nov 11, 2024
@behzod-rajabov
Copy link
Author

Hi @mattcreaser This setting is returning me the "false". But the problem is still there.

@github-actions github-actions bot added pending-maintainer-response Issue is pending response from an Amplify team member and removed pending-community-response Issue is pending response from the issue requestor labels Nov 13, 2024
@ruisebas
Copy link
Member

@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:

  1. Delete the DerivedData folder
  2. On Xcode, go to File -> Packages -> Reset Package Caches
  3. Delete your SPM cache
    rm -rf ~/Library/Caches/org.swift.swiftpm
    rm -rf ~/Library/org.swift.swiftpm

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Nov 13, 2024
@behzod-rajabov
Copy link
Author

Hi @ruisebas I have done all the options you gave, but unfortunately the problem still occurs.

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Nov 13, 2024
@ruisebas
Copy link
Member

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?
image

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Nov 13, 2024
@ruisebas ruisebas removed the pending-triage Issue is pending triage label Nov 13, 2024
@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Nov 14, 2024
@behzod-rajabov
Copy link
Author

@ruisebas Yes I tried all possible methods. I tried adding it to other projects as well. But the problem is the same.

@ruisebas ruisebas added not-reproducible Not able to reproduce the issue and removed pending-maintainer-response Issue is pending response from an Amplify team member labels Nov 14, 2024
@ruisebas
Copy link
Member

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.

@behzod-rajabov
Copy link
Author

Yes @ruisebas , the problem is with SourceTree. Thanks for your help 👍🏼

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Nov 18, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-reproducible Not able to reproduce the issue pending-maintainer-response Issue is pending response from an Amplify team member question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants