I'm making a ios application using swift with c++ sqlite database. My problem is when I run the code in xcode, I get an error when trying to open the database in c++ file. [logging-persist] cannot open file at line 42263 of [95fbac39ba]
I tried to get the correct file path like how we would use sqlite in swift and just copied and pasted that path to c++ file but it didn't work. The filepath I got was /Users/racelab/Library/Developer/CoreSimulator/Devices/1B9AB8BA-C000-42CC-8588-211E0928722F/data/Containers/Data/Application/F4C2A19E-10C5-4474-8DFD-D4105C859A19/Documents/buildings.db
double Database::getLatitude(const char* nameOfBuilding){
int exit = 0;
exit = sqlite3_open("buildings.db", &db);
I expect to get the correct filepath so that I can open sqlite3 database.