MacOS crashes when opening Flutter app on Xcode Simulator - xcode

I am creating a Flutter app in Android Studio and have installed my app on the Xcode iOS Simulator. Whenever I open the app, the Simulator's screen turns white for about one second before my Mac completely freezes and forces a restart, saying "Your computer restarted because of a problem."
When I emulate my app in the Android Studio Android Emulator (Pixel 6 API 33), the app functions perfectly fine. I have tried restarting Xcode, Xcode Simulator, Android Studio and MacOS, but the problem still persists.
MacOS Monterey 12.5.1,
Simulator: iPhone 14 Pro, iOS 16.0
What could be causing this and how can I solve this issue?

i can not help without an error message but try to run the app in release mode.
flutter run --release

Related

Flutter App Crashing on iOS Device on Version 1.12.123 hot fix 8

I am having issues running my Flutter apps on my iPhone 11 device. The app runs fine on the simulator. It is when I install it on my device with flutter run that the problem occurs. I ran flutter doctor and it said there were no issues found.
What is happening is that the app installs on the device seemingly fine. However, when you launch it (and trust the developer in iOS settings), the app just crashes.
I tried testing this with a fresh Flutter app, to see if it was a problem with the recent update to 1.12.13 hotfix 8. And, even the fresh app is crashing on my phone.
Is there a solution for this problem or am I going to have to downgrade to an older version of Flutter?
Thanks

Expo Error running Xcode iOS Simulator: No iPhone devices available in Simulator

I'm having an issue running iOS simulator from Expo. I'm seeing these two errors:
Trying to open the project in iOS simulator...
Opening iOS simulator
iOS Simulator device failed to boot. Try opening Simulator first, then running your app.
Error installing or running app. Error: Timed out waiting for iOS Simulator device to boot.
Trying to open the project in iOS simulator...
Booting device in iOS simulator...
There was a problem booting a device in iOS Simulator. Quit Simulator, and try again.
Error installing or running app. Error: No iPhone devices available in Simulator
An iPhone 5s with iOS 11.2 is clearly available and works in Xcode simulator with a simple project ran from Xcode which tells me this is an Expo issue.
I'm using:
Expo version: 3.4.1
Xcode version: 9.2
Mac OS: 10.12.6
Please note - I cannot upgrade my OS. So Xcode version 9.2 is what I must use.
Things I've tried:
set command line tools as correct Xcode version with path /Applications/Xcode.app
delete all simulators and re-add them
start simulator before running app / start simulator after running app
delete all contents under Library/Developer/CoreSimulator/Devices/
I know this question has been asked before, but no solid answer has been given. Maybe someone has figured it out since then.
your phone runs a newer version of software, so you won't be able to use Xcode version 9.2, you have to use 11.2 or newer before running it on your own phone.
if you want it to work with a newer version of iOS, you have to link the device files of newer Xcode version to the version you use.
https://community1.pega.com/community/pega-support/question/building-mobile-apps-newer-ios-versions-older-xcode-versions
this link should help you with your problem, just follow their steps
you have to do this because each iOS has its own files which comes with the new versions of Xcode
I hope this helps you;)

XS community 6.1.1 auto close apps on iOS simulator 8.1 after deploy

When I debug and deploy Xamarin.iOS native app to iOS simulator 8.1 through XS(in Mac), it installs app to simulator but it closes automatically after installation. Though app deployment on iOS simulator 10 works fine. This problem is occurred after updating XS to latest version and iOS SDK update to latest version. My iOS app deployment target is 8.0. Also I made sure that Entitlements.plist is empty.
NOTE: Xcode 8 does successful installation on iOS simulator 8.1 and works fine.
Anyone knows why this problem occurs and how to resolve it ?
Clean the project, recompile it and run on simulator.
Additionally, open simulator logs using Cmd + / hotkey and see what exactly is being printed to the simulator logs when you launch your app.
I've seen similar problems which were related to the app crash on launch actually.

iOS simulator crashes in Xcode 6

I'm running Xcode6-Beta and When I try running up the iOS simulator I get this error:
It was working fine up until this point. I've tried restarting Xcode and rebooting my Mac but the issue is still there.
Any ideas?

Can't install app on iOS 6 after iOS 7 Xcode update

Recently I downloaded the Xcode update, and tried my app on the iOS 7 simulator, and had to change a few things as expected. I noticed that the update uninstalled the iOS 6 simulator, so I downloaded it again and the 6.1 sim runs fine it seems, until I pressed run in Xcode. It gave me an alert box simply saying "iOS simulator failed to instal the application" with an OK button. the iOS sim was on the home screen with the old version of my app before i started working on it today. Has anybody else had this problem? It didn't give me any other details. Also my deployment target os is 6.1 and pressing build results in a success.
Found another post that says you have to change the "Opens in" bit to Xcode 4.6 in nibs and storyboards. fixed my problem.

Resources