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

version miss match #97

Closed DearAmber closed 9 months ago

DearAmber commented 10 months ago

Showing Recent Messages Failed to resolve dependencies Dependencies could not be resolved because no versions of 'aws-appsync-realtime-client-ios' match the requirement 3.0.0..<4.0.0 and root depends on 'amplify-ui-swift-liveness' 1.2.2..<2.0.0. 'amplify-ui-swift-liveness' >= 1.2.2 practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-ui-swift-liveness' >= 1.2.2 practically depends on 'amplify-swift' 2.15.4..<3.0.0 because no versions of 'amplify-ui-swift-liveness' match the requirement 1.2.3..<2.0.0 and 'amplify-ui-swift-liveness' 1.2.2 depends on 'amplify-swift' 2.15.4..<3.0.0. 'amplify-swift' >= 2.15.4 practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.25.4 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.25.5 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.25.4, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.25.2 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.25.3 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.25.2, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.25.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.25.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.23.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.24.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.22.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.22.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.21.4 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.21.5 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.21.4, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.21.2 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.21.3 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.21.2, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.21.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.21.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.20.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.20.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.18.2 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.19.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.18.2, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.18.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.18.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.18.0, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.17.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.17.2 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.17.1, 2.17.3..<2.18.0, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.16.1 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.17.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.16.1, 2.16.2..<2.17.0, 2.17.3..<2.18.0, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.15.5 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 and 'amplify-swift' 2.16.0 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4..<2.15.5, 2.15.6..<2.16.0, 2.16.2..<2.17.0, 2.17.3..<2.18.0, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because 'amplify-swift' 2.15.4 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0. 'amplify-swift' {2.15.4, 2.15.6..<2.16.0, 2.16.2..<2.17.0, 2.17.3..<2.18.0, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} practically depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0 because no versions of 'amplify-swift' match the requirement {2.15.6..<2.16.0, 2.16.2..<2.17.0, 2.17.3..<2.18.0, 2.18.3..<2.19.0, 2.19.1..<2.20.0, 2.20.2..<2.21.0, 2.21.6..<2.22.0, 2.22.2..<2.23.0, 2.23.1..<2.24.0, 2.24.1..<2.25.0, 2.25.6..<3.0.0} and 'amplify-swift' 2.15.4 depends on 'aws-appsync-realtime-client-ios' 3.0.0..<4.0.0.

phantumcode commented 10 months ago

@DearAmber Did you configure the package dependency in Xcode? The Swift Liveness SDK depends on Amplify Swift and its dependencies which includes aws-appsync-realtime-client-ios. These dependencies are resolved and pulled in automatically when you add the Liveness SPM.

In Xcode, please try to reset your Package cache and resolve your package versions.

image

If your issue is not resolve, please provide description or steps on how you've configured your app dependencies. Additional documentation can be found here: https://ui.docs.amplify.aws/swift/connected-components/liveness

DearAmber commented 10 months ago

I got this error when I was trying to add package dependencies.

DearAmber commented 10 months ago
Screenshot 2024-01-26 at 09 56 47 Screenshot 2024-01-26 at 09 56 24
DearAmber commented 10 months ago
Screenshot 2024-01-26 at 10 01 11

Then I got this error.

phantumcode commented 10 months ago

@DearAmber I'm not seeing this error when creating a new app from scratch and adding the Liveness SPM dependency.

Please clear your SPM cache and Xcode's derived data, restart Xcode and try adding the package again with a reliable internet connection.

What version of Xcode are you using? Is this project an iOS app and what is the minimum deployment target?

phantumcode commented 10 months ago

@DearAmber If you had added the Amplify Swift SPM, please remove that dependency from your project.

phantumcode commented 9 months ago

Closing issue due to inactivity, please re-open if this is still an issue.