Skip to content

fix(apple): use documents for tempfile - #10019

Merged
jamilbk merged 2 commits into
mainfrom
fix/ios-log-export
Jul 26, 2025
Merged

fix(apple): use documents for tempfile#10019
jamilbk merged 2 commits into
mainfrom
fix/ios-log-export

Conversation

@jamilbk

@jamilbk jamilbk commented Jul 26, 2025

Copy link
Copy Markdown
Member

On iOS, we were using the tempfile directory to stage the log export, and then moving this into place from the share sheet presented to the user.

For some reason, this has stopped working in iOS 18.5.0, and we need to stage the file in the standard documents directory instead.

Fixes #10014

Copilot AI review requested due to automatic review settings July 26, 2025 13:37
@vercel

vercel Bot commented Jul 26, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 1:44pm

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue with log export functionality on iOS 18.5.0 where the share sheet can no longer access files staged in the temporary directory. The solution is to stage log files in the documents directory instead of the temporary directory.

Key Changes

  • Updated the tempFile() method to use the documents directory instead of the temporary directory for staging log export files
  • Added comment explaining why the documents directory is required for share sheet compatibility

Comment thread swift/apple/FirezoneKit/Sources/FirezoneKit/Helpers/LogExporter.swift Outdated
@jamilbk
jamilbk added this pull request to the merge queue Jul 26, 2025
Merged via the queue into main with commit 621028a Jul 26, 2025
28 checks passed
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.

Can't export logs on iOS

3 participants