Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(runner): expose Documents folder in the Files app - #12

Merged
Timo972 merged 1 commit into
masterfrom
timo/files-app-sharing
Jun 12, 2026
Merged

Timo972 merged 1 commit into
masterfrom
timo/files-app-sharing

Conversation

@Timo972

@Timo972 Timo972 commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Files written into the WDA runner's container Documents/ are now visible on-device in the Files app (under "On My iPhone > Mobilerun") and accessible over AFC house-arrest document sharing (go-ios/ifuse).

  • Declare UIFileSharingEnabled, LSSupportsOpeningDocumentsInPlace, and CFBundleDisplayName ("Mobilerun") in WebDriverAgentRunner/Info.plist as the source of truth.
  • Xcode's XCTRunner template does not inherit custom Info.plist keys from the test bundle — they end up buried in PlugIns/<product>.xctest where iOS never looks. A new scheme Build post-action (Scripts/enable-runner-file-sharing.sh) lifts the keys into Runner.app/Info.plist and re-signs, following the same pattern as the existing icon and broadcast-extension embed scripts.
  • Wired into the WebDriverAgentRunner and WebDriverAgentRunner-nodebug schemes; tvOS untouched (no Files app).

Note: only files under the container's Documents/ subdirectory show up in the Files app; re-signing pipelines must preserve the patched Runner.app/Info.plist.

Test plan

  • Simulator build-for-testing via the WebDriverAgentRunner scheme logs enabled Files app sharing in …Runner.app
  • Built WebDriverAgentRunner-Runner.app/Info.plist contains both keys (true) and CFBundleDisplayName = Mobilerun
  • codesign --verify --deep --strict passes on the patched app
  • On-device: folder appears in Files after writing into Documents/

🤖 Generated with Claude Code

Declare UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace (plus
CFBundleDisplayName "Mobilerun") in WebDriverAgentRunner/Info.plist so
files written into the WDA container's Documents/ can be browsed
on-device and pulled via AFC house-arrest (go-ios/ifuse).

Xcode's XCTRunner template does not inherit custom Info.plist keys from
the test bundle, so a new scheme post-action
(Scripts/enable-runner-file-sharing.sh) lifts them out of
PlugIns/<product>.xctest into Runner.app/Info.plist and re-signs,
following the same pattern as the icon and broadcast-extension embeds.
Wired into the WebDriverAgentRunner and WebDriverAgentRunner-nodebug
schemes; tvOS is untouched (no Files app).

Co-Authored-By: Claude Fable 5 <[email protected]>
@Timo972
Timo972 merged commit 1e2b46e into master Jun 12, 2026
@Timo972
Timo972 deleted the timo/files-app-sharing branch June 12, 2026 10:38
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.

1 participant