SPM dependency conflict with Amplify library
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:
- Create new project using Xcode
- Using SPM add latest 1.28.1 version of amplify-ios library (exact version)
- Using SPM add latest 3.6.1 version of aws-mobile-appsync-sdk-ios library (exact version)
- 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.
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
Hey, Any update on the above?
PR by @alexanderedge: https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/552
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 😞
PR to do the same in the podspec. https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/553
The versions have been updated in all the repos. Closing this issue.