Reputation: 760
I'm creating a flutter plugin and I just tried the example project that gets created by flutter it self. This example project is an app that shows the operation system and its version. If I start it from Xcode on my iPhone SE, it works fine. But if I close the app and open it without Xcode, that means that I tipp on the app icon to launche it, like every normal app, it doesn't start correctly. It is showing for not even a second a white screen, followed by a black screen and is closing the app right after this.
Thanks in advance!
Edit: Thanks to the answer of Răzvan Puiu below, i know now that this is because xCode puts the app as a debug version on my iPhone. This debug version can only run with xCode. After I tried it with a 'normal' app and not the example app of a plugin project, i even got this text shown if i tried to start the debug version without xCode:
So the solution is to run the app with:
flutter run --release
Upvotes: 3
Views: 515
Reputation: 731
flutter run --release
and then select your physical device. However the app will remain on your phone for only 7 days unless you have the Apple dev account.Upvotes: 5