기본 콘텐츠로 건너뛰기

1월, 2019의 게시물 표시

iOS, DB Error: 26 "file is not a database"

error after "pod update" 암호화라이브러리에서 문제가 있는듯. 버전에 따라 암호화형식이 바뀌는 모양. SQLCipher ( 3.4 . 2 ) -> SQLCipher ( 4.0.1 )   Podfile ***   ## 수정전. 버전 지정이 없음. pod 'FMDB/SQLCipher'   # 버정지정을 해봄.  # FMDB/SQLCipher로는 SQLCipher의 버전이 아닌 FMDB의 버전으로 인식되었다. pod 'FMDB/SQLCipher', '3.4.2' # FMDB와 SQLCipher를 따로따로 # 버전지정은 성공했으나, 데이터베이스의 인식에 실패 (Error: 26 "file is not a database") pod 'FMDB', '~>2.5' pod 'SQLCipher', '3.4.2'   # FMDB의 버전지정을 FMDB/SQLCipher로 해봄. # 데이터 베이스의 인식에 성공. pod 'FMDB/SQLCipher', '~>2.5'  pod 'SQLCipher', '3.4.2'   ***********