awslabs / aws-mobile-appsync-sdk-ios

iOS SDK for AWS AppSync.
https://awslabs.github.io/aws-mobile-appsync-sdk-ios/
Other
262 stars 130 forks source link

Version incompability with other amplify packages #573

Closed csamprajan closed 11 months ago

csamprajan commented 1 year ago

Description

AWSAppSync depends on SQLite 0.12.2 whereas amplify plugins depend on 0.13.2 Could you please upgrade SQLite dependency to 0.13.2 ?

I get the following error:

[!] CocoaPods could not find compatible versions for pod "SQLite.swift": In Podfile: AWSAppSync (~> 3.6.2) was resolved to 3.6.2, which depends on SQLite.swift (~> 0.12.2)

SQLite.swift (~> 0.13.2)

amplify_datastore (from `.symlinks/plugins/amplify_datastore/ios`) was resolved to 0.0.1, which depends on
  AmplifyPlugins/AWSDataStorePlugin (= 1.29.1) was resolved to 1.29.1, which depends on
    SQLite.swift (= 0.13.2)

versions: amplify_datastore: ^0.6.3 in pubspec.yaml file of my flutter app pod 'AWSAppSync', '~> 3.6.2' in Podfile under ios

our implementation: We've built a flutter mobile app with AWS graphql & datastore in the frontend. Now, we're extending additional offline capabilities using aws appsync. It will be native ios code to be called in the background mode.

To Reproduce Steps to reproduce the behavior:

  1. Create a new flutter app using flutter create command
  2. Add dependencies using flutter pub add amplify_flutter amplify_api amplify_datastore
  3. Under ios folder, Add pod 'AWSAppSync', '~> 3.6.2' in the Podfile
  4. Run flutter run command on the project root
  5. See the error

Screenshots

Screenshot 2023-05-22 at 9 59 22 AM

Environment:

Device Information:

csamprajan commented 1 year ago

Any progress on this, please ?

atierian commented 11 months ago

Thank you for opening this issue. AWS AppSync SDK for iOS entered maintenance mode in September 2023 and will receive no further updates as of September 2024.

Please use Amplify Swift going forward. For information on upgrading to Amplify Swift, refer to the Upgrade from AppSync SDK documentation.