Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run Flutter app on iOS without usb-cable connected

Tags:

xcode

flutter

I have a Flutter project which shows a map with a user's location.

This app runs fine on physical Android and iOS devices when connected via USB.

Without having the USB cable connected on iOS, the app crashes immediately when started. On Android this not an issue.

Other apps I've made in Ionic/Angular did not have this problem. Could it be that there is some debugger in XCode to which my app tries to connect? Or maybe another setting I've missed?

like image 475
Bas van Dijk Avatar asked Feb 02 '26 01:02

Bas van Dijk


2 Answers

It turned out that I could use the Flutter app without my usb cable connected. First I had to run the app on my iPhone via XCode. Then I only had to deploy the app to my iPhone with

flutter run --release.

like image 150
Bas van Dijk Avatar answered Feb 03 '26 15:02

Bas van Dijk


This is a known issue. The Flutter iOS app when run in debug mode won't be able to run on a physical device when disconnected to the host machine due to changes in debugger mechanisms since iOS 14.

like image 34
Omatt Avatar answered Feb 03 '26 17:02

Omatt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!