Closed jozdee closed 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; }
其他还有一些第三方库也会使用 sqlite3_exec 系统方法
打包动态库,又出现这个错误
This is just a common library conflict and compilation problem, you need to learn how to solve it.
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; }