Skip to content

Application: File types on iOS #1385

Open

Description

@oneo-me

Context

Part of #1306. The roadmap's Application and windows section lists this item (line 152 of docs/roadmap.md at f7fc2f5c) with no issue.

Reference: CFBundleDocumentTypes with scene:openURLContexts:; NSH's #1565

Acceptance

  • iOS packages register file_types and document opens reach OnOpenFiles; desktop packages already register them

For: 开发@柚子

Activity

  1. added
    enhancement
    on Nov 21, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. houko commented on Nov 22, 2026

    @houko
    Collaborator

    Implemented in #2034 at bc461c6d4c13c534bb56490892c2ffc02f2527a3.

    Native iOS 27 verification passed against a packaged receiver: an actual UIKit/Launch Services transfer cold-launched the app, a second document reached the same process, Unicode filenames and SHA256/content matched, and imported copies remained readable after the sender was removed. A separate custom link opened through the sender app's public API reached OnOpenLinks in that same process. The document sender presents Open In and uses a test-only native default-recipient action to perform the transfer; the receiver receives real UIKit URL contexts. This is system handoff evidence, not a claim of tapping the picker.

    Repeatable command, also added to simulator CI:

    NSGO_SIMULATOR_E2E=1 go tool nsgo test -run '^TestIOSDocumentTypesEndToEnd$' ./cmd/nsgo -- -timeout=15m

    All four native import/delegate regression tests pass. Host checks and the combined macOS arm64/iOS/iOS simulator/tvOS/tvOS simulator check pass, along with module/API/layering/skills, duplicate, changelog and workflow checks.

    Imports are app-owned temporary copies, coordinated off the UI thread with balanced security scopes. File-provider and physical-device acceptance remain documented; this PR references the issue without automatically closing it.

  4. oneo-me commented on Nov 24, 2026

    @oneo-me
    CollaboratorAuthor

    Re-verified on current main (96d8b4533), 2026-11-24. #2034 is merged as a05b666.

    NSGO_SIMULATOR_E2E=1 go tool nsgo test -run '^TestIOSDocumentTypesEndToEnd$' ./cmd/nsgo passed in 3m22s on a freshly created iPhone 18 Pro simulator (iOS 27.2). It packages the receiver with file_types, sends documents through UIKit and Launch Services (cold launch, then warm delivery to the same process), and checks that they reach OnOpenFiles with matching content and hash.

    The long-booted simulator wedged in simctl terminate and hung the first run. That was a simulator-state problem, not a test failure.

    Still not verified, so I'm leaving this open:

    • Physical iPhone: a document opened into the packaged app from Files or Open In on a real device. This needs someone to pick the app in the system's share and Open In sheet, which runs outside the app and which I can't drive from the Mac.
    • File provider: a document from a file-provider location (iCloud Drive or a third-party provider), which uses the security-scoped path.

    🤖 Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions