강의

멘토링

커뮤니티

Inflearn Community Q&A

eunjinjeong51157484's profile image
eunjinjeong51157484

asked

[Code Factory] [Intermediate] Flutter Real Practice! State Management, Cache Management, Code Generation, GoRouter, Authentication Logic, etc. Essential Skills to Become an Intermediate!

Implementing SplashScreen

checkToken 함수 read 에러 관련 질문

Written on

·

277

0

안녕하세요.

iOS 시뮬레이터로 개발중입니다.

checkToken 함수 실행 시 Unhandled Exception: PlatformException(Unexpected security result code, Code: -25300, Message: The specified item could not be found in the keychain., -25300, null) 에러가 발생하여 질문드립니다.

 

값이 없을 경우 nullable string이 나와야 하는데 exception이 나오는 이유가 궁금해요.

 

혹시 몰라서 write를 먼저 하고 read를 했더니 값이 잘 불러와집니다.

flutter하이브리드-앱

Answer 2

0

codefactory님의 프로필 이미지
codefactory
Instructor

안녕하세요!

말씀하신대로 키값이 존재하지 않아서 내부에서 던진걸로 보입니다.

분석은 잘 하신 것 같은데 변경된 부분이라 생각하셔서 질문주신게 맞을까요?

감사합니다!

0

AJJ님의 프로필 이미지
AJJ
Questioner

read가 아닌 readAll을 사용하면 에러가 없네요~ ㅎㅎ

eunjinjeong51157484's profile image
eunjinjeong51157484

asked

Ask a question