amplify-swift: ‼️ No such module 'AppSyncRealTimeClient' / Type 'StarscreamAdapter' does not conform to protocol 'WebSocketDelegate'
SPM
AppSyncRealTimeClient v3.1.1 release is complete.
If you’re using SPM with Amplify iOS v1 or Amplify Swift v2, this issue should now be resolved. If you’re still seeing the error, please select File > Packages > Update to Latest Package Versions and ensure that AppSyncRealTimeClient is using 3.1.1.
CocoaPods
AppSyncRealTimeClient v3.1.1 release is complete
If you’re using CocoaPods with Amplify iOS v1, this issue should new be resolved. If you’re still seeing the error, please try running pod install --repo-update to ensure you have the most recent version. If that doesn’t work, try deleting derived data. If that still doesn’t work, please let us know by opening an issue. Thanks!
Compiler error preventing Amplify Swift from being built.
This can also manifest as:
Type 'StarscreamAdapter' does not conform to protocol 'WebSocketDelegate'
Switch must be exhaustive
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 1
- Comments: 15 (6 by maintainers)
Thanks for letting us know @stephenjen, glad to hear it’s working for you with Flutter now.
@hidekazu-kato that’s likely due to an Xcode / SPM cache issue from a previous build. I recommend deleting derived data and SPM caches.
Hi @willnix86, Amplify Swift’s latest version 2.28.0 https://github.com/aws-amplify/amplify-swift/blob/2.28.0/Package.swift#L13 uses AppSyncRealTimeClient
from: 3.0.0so it’s picking up 3.1.0 but not 3.1.2 (current latest) probably means something is going on with it being pinned. Feel free to open a new issue over in the Amplify Swift repo with your details (https://github.com/aws-amplify/amplify-swift/issues/new?assignees=&labels=&projects=&template=bug_report.yaml) for us to better track it, since this issue is closed now. Also reaching to Tuist community may help as well.It worked after I upgraded flutter to 3.13.5 and packages to ^1.0.0:
amplify_flutter: ^1.0.0 amplify_datastore: ^1.0.0 amplify_auth_cognito: ^1.0.0 amplify_authenticator: ^1.0.0 amplify_api: ^1.0.0 amplify_storage_s3: ^1.0.0
Flutter doctor:
[✓] Flutter (Channel stable, 3.13.5, on macOS 13.5.2 22G91 darwin-arm64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0) [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.74.0) [✓] Connected device (2 available) [✓] Network resources