-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Description
After upgrading to Flutter 3.8.0 (stable), our app crashes when running on a real iOS device (e.g., iPhone with iOS 18) in debug mode. The app works correctly on Android devices and iOS simulators/emulators. The crash occurs during Dart VM initialization, with the stack trace pointing to Dart_DumpNativeStackTrace and dart::Assert::Fail in Dart_Initialize.
Steps to Reproduce:
Upgrade Flutter to version 3.8.0.
Configure an iOS app with valid signing (team ID: QR8JYC99XA) in Xcode.
Run the app on a physical iOS device using flutter run --debug.
Observe the crash during app launch.
Logs:
[Stack trace from your provided log, abbreviated for brevity]
pc 0x0000000109da1b60 fp 0x000000016afc5b20 Dart_DumpNativeStackTrace+0x18
pc 0x0000000109940368 fp 0x000000016afc5b40 dart::Assert::Fail(char const*, ...) const+0x30
pc 0x000000010998ec24 fp 0x000000016afc65f0 dart::Dart::DartInit(Dart_InitializeParams const*)+0x5a38
...
Additional Details:
The issue persists after running flutter clean, deleting Pods and Podfile.lock, and reinstalling dependencies.
Automation permissions for Xcode have been granted in Settings > Privacy & Security > Automation.
The app’s deployment target is set to [Specify, e.g., iOS 12.0], and architectures include arm64.
Switching Flutter channels (e.g., to beta) or rebuilding with flutter build ios --debug does not resolve the issue.
No custom Flutter engine is used.
Expected Behavior:
The app should launch successfully on a real iOS device in debug mode, as it does on Android and iOS simulators.
Actual Behavior:
The app crashes during Dart VM initialization, rendering it unusable on physical iOS devices.
Request:
Please investigate the cause of this crash in Flutter 3.8.0 on iOS real devices. Any workarounds or fixes would be appreciated. Let me know if additional logs (e.g., flutter run --verbose) or project details are needed.