How to Make Isolate Alive with iOS

Paul Xiong
Feb 25, 2025

--

I spent a few days debugging, rewriting, and researching my Flutter code to resolve the following issues:

  1. The app runs fine in both debug and release modes.
  2. It was successfully submitted to the Apple App Store and approved for distribution.
  3. The app uses the main isolate plus two additional isolates — one for tracking new photos and another for running a TFLite image model.
  4. The issue: While both isolates work in debug/release builds, they do not run in the .IPA built for App Store distribution.
  5. I managed to keep the tracking isolate alive by implementing a monitor module that checks and restarts it if needed.
  6. 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.

--

--

Paul Xiong
Paul Xiong

Written by Paul Xiong

Predicting the next word (token) is what powers ChatGPT, while predicting the next photo (embedding) forms the foundation of ImageGPT.

No responses yet