Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何访问现有已经加过密的数据库 #169

Open
dslcoding opened this issue Aug 20, 2024 · 1 comment
Open

如何访问现有已经加过密的数据库 #169

dslcoding opened this issue Aug 20, 2024 · 1 comment

Comments

@dslcoding
Copy link

我已经将加过密的数据库拖至项目中,我用 setKey 方法进行访问,项目报错:file is not a database in "SELECT * FROM +------(LKDBHelper *)getUsingLKDBHelper{ static LKDBHelper* db; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ db = [[LKDBHelper alloc]initWithDBPath:[zi_Table downloadPath]]; NSLog(@"==DDDD+==%@",[zi_Table downloadPath]); [db setKey:@"44444444"]; //[db setket] ; }); return db; }

@li6185377
Copy link
Owner

  1. 你先看下数据库路径 对不对, 比如先用个没加密的数据库
  2. 要导入 pod 'FMDB/SQLCipher'
  3. 你加密的数据库是否标准的 SQLCipher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants