How to Make Isolate Alive with iOS
Feb 25, 2025
I spent a few days debugging, rewriting, and researching my Flutter code to resolve the following issues:
- The app runs fine in both debug and release modes.
- It was successfully submitted to the Apple App Store and approved for distribution.
- The app uses the main isolate plus two additional isolates — one for tracking new photos and another for running a TFLite image model.
- The issue: While both isolates work in debug/release builds, they do not run in the .IPA built for App Store distribution.
- I managed to keep the tracking isolate alive by implementing a monitor module that checks and restarts it if needed.
- However, I could never get the AI model isolate to stay alive in the .IPA build.
- …
The solution: Don’t strip linked product. Apple might explain why.