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

登录时Sqlite3报错“no such function: sqlcipher_export” #7

Open
h001erolee opened this issue Mar 21, 2022 · 3 comments
Open

Comments

@h001erolee
Copy link
Collaborator

调用signInByName时,Sqlite3报错“no such function: sqlcipher_export”。

@h001erolee
Copy link
Collaborator Author

截屏2022-03-21 下午6 58 57

@h001erolee
Copy link
Collaborator Author

h001erolee commented Mar 21, 2022

部分项目出现此情况,原因是项目中引用了libsqlite3,而libsqlite3覆盖floo-ios中的sqlcipher代码。

引入的途径可能是:

  1. 通过xcode配置Build Phases - Link Binary With Libraries中增加libsqlite3.tbd;
  2. 通过Build Settings - Other Linker Flags中增加-lsqlite3;
  3. 通过cocoapods引用第三方库时,间接依赖了libsqlite3。

如果是前两种情况可以通过去掉libsqlite3.tbd或者-lsqlite3依赖解决,如果是第三种情况,可以将App工程target配置Build Settings中 Other Linker Flags中的$(inherited)去掉,并将其值串手动去掉-l”sqlite3”和-l”sqlite3.0”后重新添加到 Other Linker Flags中。

step1
step2

注:

取$(inherited)的值串,目前没找到好的方法,只能悬停到Other Linker Flags值上方显示全部,然后手动抄写,欢迎各位大神提供更好的获取办法,感激不尽~~
getvalue

@h001erolee
Copy link
Collaborator Author

补充一下:sqlcipher是sqlite3的加密版实现。

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

1 participant