"unable to close due to unfinalized statements or unfinished backups"

I keep seeing this message in the console log as soon as my app starts, on both the device and in the Simulator: "unable to close due to unfinalized statements or unfinished backups".

Having searched the internet for the message, it seems like it could be related to SQLite, which my app does in fact use. Can anyone let me know if this is of any concern, and if so, how to address it?

Replies

it seems like it could be related to SQLite

Indeed. To investigate this, set a symbolic breakpoint on the sqlite3Close symbol (a private function within SQLite) and see if that’s correlated to this log message. You can then look at the backtrace to see where it’s coming from.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"