Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.78k stars 1.41k forks source link

YYKit中的YYKVStorage,崩溃在sqlite3_exec调用上,请问如何解决? #1009

Closed jozdee closed 11 months ago

jozdee commented 11 months ago

YYKit中的YYKVStorage,崩溃在sqlite3_exec调用上,请问如何解决?

(BOOL)_dbExecute:(NSString *)sql { if (sql.length == 0) return NO; if (![self _dbCheck]) return NO;

char *error = NULL; int result = sqlite3_exec(_db, sql.UTF8String, NULL, NULL, &error); if (error) { if (_errorLogsEnabled) NSLog(@"%s line:%d sqlite exec error (%d): %s", FUNCTION, LINE, result, error); sqlite3_free(error); }

return result == SQLITE_OK; }

jozdee commented 11 months ago

其他还有一些第三方库也会使用 sqlite3_exec 系统方法

jozdee commented 11 months ago

1697423693820 打包动态库,又出现这个错误

Qiuwen-chen commented 11 months ago

This is just a common library conflict and compilation problem, you need to learn how to solve it.