Skip to content

Fix silent Save/Share logs failure on macOS/iOS - #463

Merged
madadam merged 3 commits into
masterfrom
logtee-macos-ios
Oct 20, 2026
Merged

madadam merged 3 commits into
masterfrom
logtee-macos-ios

Conversation

@panfilov-vladislav

Copy link
Copy Markdown
Collaborator

Summary

  • Settings → Save/Share logs silently did nothing on macOS/iOS: log.dart's dump() called file.parent.list() unconditionally, but the logs directory never existed on those platforms (the native logtee library wasn't bundled there). Since the UI invokes _saveLogs/_shareLogs via unawaited(), the resulting exception had nowhere to go — tapping "Save" just produced no visible effect.
  • log.dart: dump() now returns early if the logs directory doesn't exist, instead of throwing.
  • Bumps the ouisync submodule to pick up Logtee.framework support for macOS/iOS (see companion PR [equalitie/ouisync#TODO]), so the logs directory and log file now actually exist on those platforms too — not just a crash fix, but real persisted logging.
  • macos/Podfile.lock, ios/Podfile.lock: updated by pod install/flutter pub get for the new logtee pod.

Why

Save/Share logs is a user-facing diagnostic feature; on macOS/iOS it was fully broken with no error surfaced.

Vlad Panfilov added 3 commits October 19, 2026 17:20
flutter-settings-ui now wraps the value widget in Flexible+DefaultTextStyle
instead of placing it directly inside a Flex, so the iOS-only
Expanded(child: Row(...)) wrapping in _getRuntimeIdForOS no longer has a
valid Flex ancestor and throws. The package already handles shrinking and
ellipsis itself, so the extra wrapping is removed for all platforms.
…/iOS

log.dart's dump() called file.parent.list() unconditionally; on macOS/iOS the
logs directory never existed (Logtee wasn't bundled there), so it threw, and
since the UI calls _saveLogs/_shareLogs via unawaited(), the failure was
completely silent - tapping "Save" just did nothing.

- log.dart: return early from dump() if the logs directory doesn't exist.
- Bump the ouisync submodule to pick up Logtee.framework support for
  macOS/iOS, so the logs directory and log file now actually exist there too.
- Podfile.lock (macOS, iOS): updated by pod install for the new logtee pod.
@madadam
madadam merged commit 5e0f180 into master Oct 20, 2026
54 of 64 checks passed
@madadam
madadam deleted the logtee-macos-ios branch October 20, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants