Skip to content

iOS: Import (Apple Health / WHOOP ZIP) fails in sideloaded .ipa — UIDocumentPicker not shown #179

@adrnxq

Description

@adrnxq

NOOP version

2.0

Platform

iOS

OS version

27

WHOOP strap model

WHOOP 5.0

Where the data is coming from

Apple Health import

What happens

When installing the provided .ipa (sideloaded) on an iPhone, the app can be started, but importing a WHOOP export ZIP/Apple Health export.zip does not work: instead of the expected iOS file selection dialog, the Finder/an inappropriate macOS Flow opens, and the ZIP cannot be clicked on or imported.

Actual behavior:

The app appears to show the macOS file import flow (SwiftUI .fileImporter) or a non-functional picker UI; the import fails, and it is not possible to select a ZIP.

Analysis / Suspected Root Cause:

In Strand/Screens/DataSourcesView.swift, SwiftUI .fileImporter() wird in Zeile ~20 verwendet. .fileImporter is available on macOS, but the iOS target uses an iOS-specific DocumentPicker implementation (Strand/System/DocumentPicker.swift) with a UIDocumentPickerViewController.
Apparently, the iOS DocumentPicker API is not being called; instead, the macOS importer path remains active, which does not work correctly on iOS and leads to the described problem.

Affected Data (Pointer):

  • Strand/Screens/DataSourcesView.swift — uses .fileImporter(isPresented: allowedContentTypes: allowsMultipleSelection: ...) (macOS style) and calls handleImportResult(...).

What you expected instead

  • On iOS, a UIDocumentPicker/Files dialog should appear, and a ZIP file (or export.xml/folder) should be selectable. The app should then be able to read and import the file locally (as it does in the macOS workflow).

Steps to reproduce

  1. Install NOOP-v-ios.ipa on an iPhone via AltStore/SideStore (or locally with a paid dev cert + profile).
  2. Start the app.
  3. Settings → Data Sources → Apple Health → "Choose export.zip..." (or WHOOP → "Choose export...")
  4. Instead of the iOS document picker, a Finder-like UI appears and the ZIP file cannot be selected/opened; the import fails.

Strap log


Before you submit

  • I attached or pasted a strap log above — or my bug is a clearly reproducible UI issue that doesn't need one (e.g. a typo, a button that does nothing) and I've described exactly how to see it.
  • I checked the Troubleshooting guide — especially "history syncs but no data" (most often the strap isn't banking history to flash; charge it to 100% and reconnect).
  • I've left out anything personal (strap serial, account email, raw export).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions