aws-mobile-appsync-sdk-ios icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-ios copied to clipboard

SPM dependency conflict with Amplify library

Open Devepre opened this issue 3 years ago • 1 comments

Describe the bug Xcode fails to add latest 3.6.1 version of aws-mobile-appsync-sdk-ios library while latest 1.28.1 version of amplify-ios library already added to the project.

To Reproduce Steps to reproduce the behavior:

  1. Create new project using Xcode
  2. Using SPM add latest 1.28.1 version of amplify-ios library (exact version)
  3. Using SPM add latest 3.6.1 version of aws-mobile-appsync-sdk-ios library (exact version)
  4. See error "unable to resolve dependencies"

Expected behavior Library should be added to project without error.

Additional context This happens because latest aws-mobile-appsync-sdk-ios requires:

        .package(
            name: "AWSiOSSDKV2",
            url: "https://github.com/aws-amplify/aws-sdk-ios-spm.git",
            .upToNextMinor(from: "2.27.0")
        )

while latest amplify-ios requires:

        .package(
            name: "AWSiOSSDKV2",
            url: "https://github.com/aws-amplify/aws-sdk-ios-spm.git",
            .upToNextMinor(from: "2.28.0")
        )

Probably the easiest way to fix is to change requirement to be the same as .upToNextMinor(from: "2.28.0") for the library.

Devepre avatar Sep 16 '22 15:09 Devepre

I am also having this issue and it block me from using latest amplify sdk where following issue was resolved: https://github.com/aws-amplify/aws-sdk-ios/issues/4153

fzy-github avatar Oct 05 '22 08:10 fzy-github

Hey, Any update on the above?

fzy-github avatar Nov 22 '22 08:11 fzy-github

PR by @alexanderedge: https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/552

albemala avatar Nov 22 '22 10:11 albemala

I'm having the same issue but with amplify 2.0.0. We want to adopt the new Async/Await that amplify provides but it uses aws-appsync-realtime-client-ios.git 2.1.1 while AppSync uses 1.8.0 😞

gevartosky avatar Dec 15 '22 16:12 gevartosky

PR to do the same in the podspec. https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/553

Ricardo1980 avatar Dec 18 '22 15:12 Ricardo1980

The versions have been updated in all the repos. Closing this issue.

royjit avatar Feb 24 '23 20:02 royjit