I'm working on a Flutter application. It happened to me more than once (this time, when I add
flutter_markdown to the project) that my app works when I run
flutter run but when I
flutter build and use that for opening the app on my phone, the app gets stuck on the splash screen.
I don't have a traditional iOS app development background, so in these cases, it's very difficult for me to figure out the source of the issues.
I tried Xcode clean, clean build folder,
rm -rf ~/.pub-cache,
rm -rf /Users/username/Library/Developer/Xcode/DerivedData/Runner-*, none of this helped, so it looks like there is an actual problem with my app and not some caching issue.
How am I supposed to debug this issue?