问问,关于ios添加sqlite3的问题,我用这两种方法打开数据库都不行,xcode也添加数据库文件
string dbPath = CCFileUtils::sharedFileUtils()->fullPathFromRelativeFile(“test.db”,“test.db”);
result = sqlite3_open(dbPath.c_str(), &pDB);
string dbPath = CCFileUtils::sharedFileUtils()->getWritablePath()+“test.db”;
result = sqlite3_open(dbPath.c_str(), &pDB);
第一种返回错误14。第二种返回0,0是正确,但断点一直sqlite3_open停留,不走下一步