Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
- Run the app on a physical iOS device or simulator in debug mode.
- Trigger a permission request that has been previously denied (e.g. photo library).
- Call openAppSettings() from permission_handler.
- In iOS Settings, toggle the permission (grant or revoke it).
- Return to the app by tapping the back arrow or app switcher.
Expected results
iOS may terminate and relaunch the app when a permission is changed this is expected platform behavior. However, the process should exit silently and cleanly, without any crash output in the console. No SIGKILL log, no FilePickerPlugin error, and no "Lost connection to device" message should appear.
Actual results
The console emits an unexpected error from FilePickerPlugin followed by a SIGKILL signal, causing the debugger to lose connection. The app does not restart cleanly.
Code sample
Code sample
***** FilePicker canceled
* -[FilePickerPlugin documentPickerWasCancelled:] [Line 702]
Process 18194 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGKILL
frame #0: 0x0000000233630cd4 libsystem_kernel.dylibmach_msg2_trap + 8
libsystem_kernel.dylibmach_msg2_trap:
-> 0x233630cd4 <+8>: ret
libsystem_kernel.dylib`macx_swapon:
0x233630cd8 <+0>: mov x16, #-0x30 ; =-48
0x233630cdc <+4>: svc #0x80
0x233630ce0 <+8>: ret
Target 0: (Runner) stopped.
Lost connection to device.
Exited
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
3.38.5
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.38.5, on macOS 15.7.4 24G517 darwin-arm64, locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
[✓] Chrome - develop for the web
[✓] Connected device (5 available)
[✓] Network resources
• No issues found!
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
Expected results
iOS may terminate and relaunch the app when a permission is changed this is expected platform behavior. However, the process should exit silently and cleanly, without any crash output in the console. No SIGKILL log, no FilePickerPlugin error, and no "Lost connection to device" message should appear.
Actual results
The console emits an unexpected error from FilePickerPlugin followed by a SIGKILL signal, causing the debugger to lose connection. The app does not restart cleanly.
Code sample
Code sample
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
3.38.5
Flutter Doctor output
Doctor output