skip to Main Content

So i’m testing a flutter app that builds and installs successfully on an iOS simulator as well as a physical devices. However, when building and installing the app with xcode via the USB, it successfully installs and launches but when the USB is disconnected from my mac and i try to run the already installed device on the iPhone, it shows only the launch / splash screen and fades and closes.

Is there something i’m doing wrong that causes this to happen? As the app works fine when connected with the USB and it’s being run.

2

Answers


  1. In iOS, debug build doesn’t work without USB. To use the app without USB trying making a release build using flutter run –release

    Login or Signup to reply.
  2. If the build is in debug mode – it won’t open.

    if you want to open application after disconnecting, try profile / release mode

    flutter run --profile
    

    or

    flutter run --release
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search