net.sqlcihper.database.SQLiteException:file is not a database:, while compiling:select count(*) from sqlite_master;

Hi, Sorry to say, but I did one mistake in previous message.
Yes we are providing password just after Step 1 by using sqlite3_key and Step 3 is actually
PRAGMA cipher_salt = \"%@\"
Really sorry about this.

So this is a case of encryption but we are getting error for plain DB also.

One more thing, we are making Connection with DB just after app launch in didFinishLaunchingWithOptions method. Infact this is first thing which we are doing in didFinishLaunchingWithOptions.

Could there be a case when the access to file. or sandbox is not yet released to our app’s process. Because these errors are random we are not getting everytime.

And really thanks for reply.