[Module:SQLiteSupport] What is the path for a .db file?

I would check paths if they are correct also logs may hint something (don’t know how to read logs from iOS, they probably apper in main log of device like in Android)

If you find need to make iOS specific code you can do this:

#if PLATFORM_IOS

//iOS code

#else

//For other platfroms

#endif

I have the SQLiteSupport Module compiled and packaged for IOS.

The SQLite function for opening .db files is :

sqlite3_open(
  const char *filename,   /* Database filename (UTF-8) */
  sqlite3 **ppDb          /* OUT: SQLite db handle */
);

and my code is:

sqlite3* db;
FString DatabaseFilename = FPaths::GameContentDir() + "Game/GameData.db";
sqlite3_open(TCHAR_TO_UTF8(*DatabaseFilename));

The path works on Mac and PC, but not iOS. I’ve used relative and absolute paths and nothing works.
Is there an example of this module working on iOS?

The path is correct, as it works in Mac and PC. The log only provides what SQLite reports, which is that the .db file can not be accessed.

I’ve already tried platform specific code, specifically the function FIOSPlatformFile::ConvertToIOSPath, which does provide a full iOS path, but SQLite is still not able to access it.

I’ve confirmed that the file does in fact exist using FPaths::FileExists, but none of the following path related function have any success either:

FPaths::ConvertRelativePathToFull
FPlatformFileManager::Get().GetPlatformFile().ConvertToAbsolutePathForExternalAppForRead
FPlatformFileManager::Get().GetPlatformFile().ConvertToAbsolutePathForExternalAppForWrite

Hope this plugin can help you.

HiSQLite3( SQLite3 For UE4)