android – Flutter-sqflite app does not work on real ios devices

I have a Flatter app that uses the sqflite database. It works perfectly on Android emulator and device and also works on iOS simulator. It works on a real ios device, but does not store or retrieve data
I am using xcode 10.1 and ios 11.2.6 on the iphone 6 and ios 12.1.4 on the iphone 5s.