I am having this error after ios 17.5 update When I run my flutter app
PlatformException(Unexpected security result code, Code: -25300, Message: The specified item could not be found in the keychain., -25300, null), stack trace: #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2 checkAgreementIntroScreen (package:mobile/src/routing/check_agreement_intro_screen.dart:17:7)
<asynchronous suspension>
#3 FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348:9)
<asynchronous suspension>
flutter: error: PlatformException(Unexpected security result code, Code: -25300, Message: The specified item could not be found in the keychain., -25300, null), stack trace: #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2 checkAgreementIntroScreen (package:mobile/src/routing/intro_screen.dart:17:7)
<asynchronous suspension>
#3 FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348:9)
<asynchronous suspension>
I tried to print the keychain but I couldnt make it.
2
Answers
Fixed the error after rollback of FlutterSecureStorage as described here: https://github.com/mogol/flutter_secure_storage/issues/709