awslabs/aws-mobile-appsync-sdk-ios

Version incompability with other amplify packages

csamprajan opened this issue · 2 comments

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:

  • AppSync SDK Version: 3.6.2
  • Cocoapods Version: 1.11.3
  • Swift Version : 5.7.1

Device Information:

  • Device: iPhone 12 Pro, Simulator
  • iOS Version: iOS 14.1

Any progress on this, please ?

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.