aws-amplify / amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
https://ui.docs.amplify.aws/swift/connected-components/liveness
Apache License 2.0
11 stars 25 forks source link

Problem adding via SPM #182

Closed behzod-rajabov closed 1 week ago

behzod-rajabov commented 2 weeks ago

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

mattcreaser commented 2 weeks 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.

behzod-rajabov commented 1 week ago

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

ruisebas commented 1 week ago

@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
behzod-rajabov commented 1 week ago

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

ruisebas commented 1 week ago

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

behzod-rajabov commented 1 week ago

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

ruisebas commented 1 week ago

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 commented 1 week ago

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

github-actions[bot] commented 1 week ago

⚠️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.