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

mac m1 模拟器 运行时 报错 #152

Open
zuilikanhua opened this issue Aug 7, 2024 · 2 comments
Open

mac m1 模拟器 运行时 报错 #152

zuilikanhua opened this issue Aug 7, 2024 · 2 comments

Comments

@zuilikanhua
Copy link

已经选择平台SIMULATORARM64

Error (Xcode): Undefined symbol: _sqlite3_simple_init

@wangfenjin
Copy link
Owner

~ sqlite3
SQLite version 3.46.0 2024-05-23 13:25:27
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .load Downloads/libsimple-osx-x64/libsimple
sqlite> select simple_query('zhoujielun');
( z+h+o+u+j+i+e+l+u+n* OR zhou+ji+e+lu+n* OR zhou+ji+e+lun* OR zhou+jie+lu+n* OR zhou+jie+lun* OR zhoujielun* )

可能得看看你模拟器的 sqlite 版本;如果 sqlite 没问题,可能得在模拟器自己编译 simple 这个库

@zuilikanhua
Copy link
Author

用的是https://cocoapods.org/pods/sqlite3,模拟器 用默认分词器可以正常工作,,,真机用 默认的打包方式,,simple分词器也正常工作。。主要是 在模拟器编译不会,,不过现在也能用了,,谢谢

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