App not running on iPhone Simulator

284 views
Skip to first unread message

Terry Diederich

unread,
Mar 30, 2018, 2:22:48 PM3/30/18
to Flutter Dev
I'm looking at Flutter for the first time today. I am using just the basic demo code you get when you create a new project. I can run the app fine on Android emulator and on a physical Android device, no problems. However it is not working on the iPhone simulator. The app is created and installed on the simulator but when it runs a white screen flashes for a second and closes. 

Any ideas? As I said, this is my first time with Flutter so I'm sure I have something setup wrong but I don't know where to look.

MacBook Air
MacOS 10.13.4
Xcode 9.3 (9E145)
Simulator version 10.0 (SimulatorApp-851.2 CoreSimulator-518.19)
Visual Studio Code 1.21.1
Flutter 0.2.3

No issues reported from Flutter Doctor.

Thanks
Terry

Sanjay Tejani

unread,
Mar 30, 2018, 2:55:10 PM3/30/18
to Flutter Dev
Hi Terry,

Question

1. Have you check other iOS simulator? If you couldn't please do it and let us know.
2. do you have crash report?

Terry Diederich

unread,
Mar 30, 2018, 3:06:19 PM3/30/18
to Flutter Dev
What other simulator? I'm using the one with Xcode.

I'm not getting any errors. Where would I look for a crash report?

Terry Diederich

unread,
Mar 30, 2018, 3:28:11 PM3/30/18
to Flutter Dev
I just found the page on the website that talks about logs and crash report.

There isn't anything relevent in ~/Library/Logs/DiagnosticReports/  Nothing dated this afternoon when I running this.

The other folder is empty ~/Library/Logs/CrashReporter/

If I enter flogger logs it comes back with 'Showing iPhone6 logs:' but nothing else.

Terry Diederich

unread,
Mar 30, 2018, 3:30:01 PM3/30/18
to Flutter Dev
If I enter flutter logs  (typing too fast)

Terry Diederich

unread,
Mar 30, 2018, 3:51:05 PM3/30/18
to Flutter Dev
I have it working now. I was running it from Visual Studio code my hitting F5 Start Debugging. This worked for Android with the emulator and the physical device but gave me a problem on the iPhone simulator. I just entered 'flutter install' from the MacOS terminal and it installed the app to the iPhone simulator and it runs. Not sure what the difference is between installing from Visual Studio Code or Terminal.

Danny Tuppeny

unread,
Mar 30, 2018, 5:31:02 PM3/30/18
to Flutter Dev
On Friday, 30 March 2018 20:51:05 UTC+1, Terry Diederich wrote:
I have it working now. I was running it from Visual Studio code my hitting F5 Start Debugging. This worked for Android with the emulator and the physical device but gave me a problem on the iPhone simulator. I just entered 'flutter install' from the MacOS terminal and it installed the app to the iPhone simulator and it runs. Not sure what the difference is between installing from Visual Studio Code or Terminal.

There shouldn't really be any difference, though a few people have reported apps not starting recently (usually hanging at startup, which is likely because VS Code can't connect to the debugger to "unpause" the app when it starts).

If you're seeing this, enabling logging of Flutter Run and Observatory could help, instructions are here:


If you can send me these logs (either on a GH Issue or to lo...@dartcode.org) just after reproducing the issue I can take a look.
Reply all
Reply to author
Forward
0 new messages