In my case, after updating XCode and the Simulator, I started encountering the error:
“Framework ‘Toast’ not found”
For me, the issue was resolved by downgrading the fluttertoast version from:
fluttertoast: ^8.2.12 → fluttertoast: 8.2.8
After changing the fluttertoast version to 8.2.8, the error disappeared, and the build was successful.
I’m not sure about sqflite, but you might want to give it a try.